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