Proprietà di stile borderBottomStyle
Esempio
Aggiungi un bordo inferiore "solido" a un elemento <div>:
document.getElementById("myDiv").style.borderBottomStyle = "solid";
Definizione e utilizzo
La proprietà borderBottomStyle imposta o restituisce lo stile del bordo inferiore di un elemento.
Supporto browser
I numeri nella tabella specificano la prima versione del browser che supporta completamente la proprietà.
Property | |||||
---|---|---|---|---|---|
borderBottomStyle | 1.0 | 5.5 | 1.0 | 1.0 | 9.2 |
Nota: il valore "nascosto" non è supportato in IE7 e versioni precedenti. IE9 e versioni successive supportano "nascosto".
Sintassi
Restituisce la proprietà borderBottomStyle:
object.style.borderBottomStyle
Imposta la proprietà borderBottomStyle:
object.style.borderBottomStyle = value
Valori di proprietà
Value | Description |
---|---|
none | Defines no border. This is default |
hidden | Same as "none", except in border conflict resolution for table elements |
dotted | Defines a dotted border |
dashed | Defines a dashed border |
solid | Defines a solid border |
double | Defines two borders. The width of the two borders are the same as the border-width value |
groove | Defines a 3D grooved border. The effect depends on the border-color value |
ridge | Defines a 3D ridged border. The effect depends on the border-color value |
inset | Defines a 3D inset border. The effect depends on the border-color value |
outset | Defines a 3D outset border. The effect depends on the border-color value |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
Dettagli tecnici
Valore di default: | nessuno |
---|---|
Valore di ritorno: | Una stringa, che rappresenta lo stile del bordo inferiore di un elemento |
Versione CSS | CSS1 |
Altri esempi
Esempio
Cambia lo stile del bordo inferiore di un elemento <div> in "punteggiato":
document.getElementById("myDiv").style.borderBottomStyle = "dotted";
Esempio
Restituisce lo stile del bordo inferiore di un elemento <div>:
alert(document.getElementById("myDiv").style.borderBottomStyle);
Esempio
Una dimostrazione di tutti i diversi valori:
var listValue = selectTag.options[selectTag.selectedIndex].text;
document.getElementById("myDiv").style.borderBottomStyle = listValue;
Pagine correlate
Tutorial CSS: Bordo CSS
Riferimento CSS: proprietà in stile border-bottom
Riferimento HTML DOM: proprietà border