Propriété CSS text-decoration-color
Exemple
Définissez la couleur de la décoration de texte sur rouge :
p
{
text-decoration: underline;
text-decoration-color: red;
}
Définition et utilisation
La text-decoration-color
propriété spécifie la couleur de la décoration du texte (souligné, surligné, traversé).
Valeur par défaut: | couleurcourante |
---|---|
Hérité: | non |
Animable : | Oui. En savoir plus sur l'animation |
Version: | CSS3 |
Syntaxe JavaScript : | objet .style.textDecorationColor="rouge" |
Prise en charge du navigateur
Les nombres dans le tableau indiquent la première version du navigateur qui prend entièrement en charge la propriété.
Les nombres suivis de -moz- ou -webkit- spécifient la première version qui a fonctionné avec un préfixe.
Property | |||||
---|---|---|---|---|---|
text-decoration-color | 57.0 | 79.0 | 36.0 6.0 -moz- |
12.1 7.1 -webkit- |
44.0 |
Syntaxe CSS
text-decoration-color: color|initial|inherit;
Valeurs de propriété
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 |
Pages connexes
Tutoriel CSS : Texte CSS
Référence HTML DOM : propriété textDecorationColor