The Ul object represents an HTML <ul> element.
You can access a <ul> element by using getElementById():
You can create a <ul> element by using the document.createElement() method:
Property | Description |
---|---|
compact | Not supported in HTML5. Use style.lineHeight instead. Sets or returns whether the unordered list should render smaller than normal, or not |
type | Not supported in HTML5. Use style.listStyleType instead. Sets or returns the value of the type attribute of an unordered list |
The Ul object supports the standard properties and events.
HTML tutorial: HTML Lists
HTML reference: HTML <ul> tag
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!