CSS tekst-decoratie-kleur Eigenschap
Voorbeeld
Zet de kleur van de tekstdecoratie op rood:
p
{
text-decoration: underline;
text-decoration-color: red;
}
Definitie en gebruik
De text-decoration-color
eigenschap specificeert de kleur van de tekstdecoratie (onderstrepingen, bovenlijnen, doorstrepingen).
Standaardwaarde: | huidigeKleur |
---|---|
geërfd: | Nee |
Animeerbaar: | Ja. Lees over animeren |
Versie: | CSS3 |
JavaScript-syntaxis: | object .style.textDecorationColor="rood" |
Browserondersteuning
De getallen in de tabel geven de eerste browserversie aan die de eigenschap volledig ondersteunt.
Getallen gevolgd door -moz- of -webkit- specificeren de eerste versie die met een prefix werkte.
Property | |||||
---|---|---|---|---|---|
text-decoration-color | 57.0 | 79.0 | 36.0 6.0 -moz- |
12.1 7.1 -webkit- |
44.0 |
CSS-syntaxis
text-decoration-color: color|initial|inherit;
Eigendomswaarden
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 |
Gerelateerde pagina's
CSS-zelfstudie: CSS-tekst
HTML DOM-referentie: eigenschap textDecorationColor