HTML DOM Ul Object
Ul Voorwerp
Die Ul voorwerp verteenwoordig 'n HTML <ul> element.
Toegang tot 'n Ul Object
Jy kan toegang tot 'n <ul>-element kry deur getElementById():
Voorbeeld
var x = document.getElementById("myUL");
Skep 'n Ul-objek
Jy kan 'n <ul> element skep deur die document.createElement() metode te gebruik:
Voorbeeld
var x = document.createElement("UL");
Ul Object Properties
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 |
Standaard eiendomme en geleenthede
Die Ul-objek ondersteun die standaard eienskappe en gebeurtenisse .
Verwante bladsye
HTML-tutoriaal: HTML-lyste
HTML-verwysing: HTML <ul>-merker