Styl grens Regte Kleur Eiendom
Voorbeeld
Verander die kleur van die regterrand van 'n <div>-element na rooi:
document.getElementById("myDiv").style.borderRightColor = "red";
Definisie en gebruik
Die borderRightColor-eienskap stel of gee die kleur van die regterrand van 'n element terug.
Blaaierondersteuning
Property | |||||
---|---|---|---|---|---|
borderRightColor | Yes | Yes | Yes | Yes | Yes |
Sintaksis
Gee die borderRightColor-eienskap terug:
object.style.borderRightColor
Stel die borderRightColor-eienskap:
object.style.borderRightColor = "color|transparent|initial|inherit"
Eiendomswaardes
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 |
Tegniese besonderhede
Standaard waarde: | huidige kleur |
---|---|
Terugkeerwaarde: | 'n String, wat die kleur van 'n element se regterrand voorstel |
CSS weergawe | CSS1 |
Meer voorbeelde
Voorbeeld
Gee die regtergrenskleur van 'n <div>-element terug:
alert(document.getElementById("myDiv").style.borderRightColor);
Verwante bladsye
CSS handleiding: CSS Border
CSS verwysing: grens-regs-kleur eiendom
HTML DOM verwysing: grens eiendom
❮ Stylvoorwerp