Styl grensBottomColor Eiendom
Voorbeeld
Verander die kleur van die onderste rand van 'n <div>-element na rooi:
document.getElementById("myDiv").style.borderBottomColor = "red";
Meer "Probeer dit self" voorbeelde hieronder.
Definisie en gebruik
Die borderBottomColor-eienskap stel of gee die kleur van die onderste rand van 'n element terug.
Blaaierondersteuning
Die nommers in die tabel spesifiseer die eerste blaaierweergawe wat die eiendom ten volle ondersteun.
Property | |||||
---|---|---|---|---|---|
borderBottomColor | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
Sintaksis
Gee die borderBottomColor-eienskap terug:
object.style.borderBottomColor
Stel die borderBottomColor-eienskap:
object.style.borderBottomColor = "color|transparent|initial|inherit"
Eiendomswaardes
Value | Description |
---|---|
color | Specifies the color of the bottom 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 bottom 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 onderste rand voorstel |
CSS weergawe | CSS1 |
Meer voorbeelde
Voorbeeld
Gee die onderste randkleur van 'n <div>-element terug:
alert(document.getElementById("myDiv").style.borderBottomColor);
Verwante bladsye
CSS handleiding: CSS Border
CSS verwysing: grens-onder-kleur eiendom
HTML DOM verwysing: grens eiendom