Oggetto HTML DOM Ul
Ul oggetto
L'oggetto Ul rappresenta un elemento HTML <ul>.
Accedi a un oggetto Ul
Puoi accedere a un elemento <ul> usando getElementById():
Esempio
var x = document.getElementById("myUL");
Crea un oggetto Ul
Puoi creare un elemento <ul> usando il metodo document.createElement():
Esempio
var x = document.createElement("UL");
Proprietà dell'oggetto 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 |
Proprietà ed eventi standard
L'oggetto Ul supporta le proprietà e gli eventi standard .
Pagine correlate
Esercitazione HTML: Elenchi HTML
Riferimento HTML: tag HTML <ul>