Oggetto HTML DOM HR
Oggetto Risorse Umane
L'oggetto HR rappresenta un elemento HTML <hr>.
Accedi a un oggetto HR
Puoi accedere a un elemento <hr> usando getElementById():
Esempio
var x = document.getElementById("myHR");
Crea un oggetto HR
Puoi creare un elemento <hr> usando il metodo document.createElement():
Esempio
var x = document.createElement("HR");
Proprietà dell'oggetto HR
Property | Description |
---|---|
align | Not supported in HTML5. Use style.textAlign instead. Sets or returns the alignment of a horizontal line |
color | Not supported in HTML5. Use style.color instead. Sets or returns the color of a horizontal line |
noshade | Not supported in HTML5. Sets or returns whether a horizontal line should render in one solid color (noshaded) |
size | Not supported in HTML5. Use style.height instead. Sets or returns the height of a horizontal line |
width | Not supported in HTML5. Use style.width instead. Sets or returns the width of a horizontal line |
Proprietà ed eventi standard
L'oggetto HR supporta anche le proprietà e gli eventi standard .
Pagine correlate
Riferimento HTML: tag HTML <hr>