Proprietà di stile borderRightColor
Esempio
Cambia il colore del bordo destro di un elemento <div> in rosso:
document.getElementById("myDiv").style.borderRightColor = "red";
Definizione e utilizzo
La proprietà borderRightColor imposta o restituisce il colore del bordo destro di un elemento.
Supporto browser
Property | |||||
---|---|---|---|---|---|
borderRightColor | Yes | Yes | Yes | Yes | Yes |
Sintassi
Restituisce la proprietà borderRightColor:
object.style.borderRightColor
Imposta la proprietà borderRightColor:
object.style.borderRightColor = "color|transparent|initial|inherit"
Valori di proprietà
Value | Description |
---|---|
color | Specifies the color of the right border. Look at CSS Color Values for a complete list of possible color values. Default color is the current color of the element |
transparent | The color of the right border is transparent (underlying content will shine through) |
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: | colore attuale |
---|---|
Valore di ritorno: | Una stringa, che rappresenta il colore del bordo destro di un elemento |
Versione CSS | CSS1 |
Altri esempi
Esempio
Restituisce il colore del bordo destro di un elemento <div>:
alert(document.getElementById("myDiv").style.borderRightColor);
Pagine correlate
Tutorial CSS: Bordo CSS
Riferimento CSS: proprietà border-right-color
Riferimento HTML DOM: proprietà border
❮ Oggetto stile