CSS teks-versiering-kleur Eiendom
Voorbeeld
Stel die kleur van die teksversiering op rooi:
p
{
text-decoration: underline;
text-decoration-color: red;
}
Definisie en gebruik
Die text-decoration-color
eiendom spesifiseer die kleur van die teksversiering (onderstrepe, oorlyne, deurlyne).
Standaard waarde: | huidige kleur |
---|---|
Geërf: | geen |
Animateerbaar: | ja. Lees oor animeerbaar |
Weergawe: | CSS3 |
JavaScript-sintaksis: | voorwerp .style.textDecorationColor="rooi" |
Blaaierondersteuning
Die nommers in die tabel spesifiseer die eerste blaaierweergawe wat die eiendom ten volle ondersteun.
Nommers gevolg deur -moz- of -webkit- spesifiseer die eerste weergawe wat met 'n voorvoegsel gewerk het.
Property | |||||
---|---|---|---|---|---|
text-decoration-color | 57.0 | 79.0 | 36.0 6.0 -moz- |
12.1 7.1 -webkit- |
44.0 |
CSS-sintaksis
text-decoration-color: color|initial|inherit;
Eiendomswaardes
Value | Description | Play it |
---|---|---|
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 |
Verwante bladsye
CSS-tutoriaal: CSS-teks
HTML DOM verwysing: textDecorationColor eiendom