Styl teksDecorationColor Property
Voorbeeld
Verander die kleur van die lyn, in 'n onderstreepte teks:
document.getElementById("demo").style.textDecorationColor = "red";
Definisie en gebruik
Die textDecorationColor-eienskap spesifiseer die kleur van die teksversiering (onderstrepe, oorlyne, deurlyne).
Let wel: Die textDecorationColor-eienskap sal slegs 'n effek hê op elemente met 'n sigbare teksversiering.
Blaaierondersteuning
Property | |||||
---|---|---|---|---|---|
textDecorationColor | 57 | 79.0 | 36.0 6.0 Moz |
7.1 Webkit | 44.0 |
Sintaksis
Gee die textDecorationColor-eienskap terug:
object.style.textDecorationColor
Stel die textDecorationColor-eienskap:
object.style.textDecorationColor = "color|initial|inherit"
Eiendomswaardes
Value | Description |
---|---|
color | Specifies the color of the text-decoration |
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 teks-versiering-kleur-eienskap van 'n element verteenwoordig |
CSS weergawe | CSS3 |
Verwante bladsye
CSS verwysing: teks-versiering-kleur eiendom
❮ Stylvoorwerp