Latest web development tutorials

oggetti HTML DOM Ol

oggetti Ol

oggetto Ol rappresenta un elemento HTML <ol>.

Accesso Ol Object

È possibile utilizzare getElementById () per accedere all'elemento <ol>:

var x = document.getElementById("myOl"); 尝试一下

Creare oggetti Ol

È possibile utilizzare il metodo document.createElement () per creare <ol> elemento:

var x = document.createElement("OL"); 尝试一下

proprietà degli oggetti Ol

属性 描述
compact HTML5 中不支持。使用 style.lineHeight 替代。
设置或返回列表是否呈现比正常情况更小巧的效果。
reversed 设置或返回列表是否为降序。
start 设置或返回有序列表的 start 属性的值。
type 设置或返回有序列表的 type 属性的值。

proprietà ed eventi standard

oggetti Ol supporta anche standard di attributi ed eventi .


articoli correlati

HTML Reference Manual: HTML <ol> tag