HTML DOM Ul Object
Ul Object
Obiekt Ul reprezentuje element HTML <ul>.
Uzyskaj dostęp do obiektu Ul
Możesz uzyskać dostęp do elementu <ul> za pomocą getElementById():
Przykład
var x = document.getElementById("myUL");
Utwórz obiekt Ul
Możesz utworzyć element <ul> za pomocą metody document.createElement():
Przykład
var x = document.createElement("UL");
Właściwości obiektu Ul
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 |
Standardowe właściwości i zdarzenia
Obiekt Ul obsługuje standardowe właściwości i zdarzenia .
Powiązane strony
Samouczek HTML: Listy HTML
Odniesienie HTML: tag HTML <ul>