Attribut text-decoration-color CSS
- Page précédente text-decoration
- Page suivante text-decoration-line
Définition et utilisation
L'attribut text-decoration-color définit la couleur de text-decoration (soulignement, surbrillance, trait traversant).
Voir également :
Tutoriel CSS :Texte CSS
Manuel de référence HTML DOM :textDecorationColor Attribut
Exemple
Mettre la couleur de text-decoration en rouge :
p { text-decoration: underline; text-decoration-color: red; }
Syntaxe CSS
text-decoration-color: color|initial|inherit;
Valeur de l'attribut
Valeur | Description |
---|---|
color | Définit la couleur de text-decoration. |
initial | Sets this property to its default value. See initial. |
inherit | Inherits this property from its parent element. See inherit. |
Détails techniques
Valeur par défaut : | currentColor |
---|---|
Héritage : | Non |
Création d'animation : | Pris en charge. Voir :Propriétés liées aux animations. |
Version : | CSS3 |
Syntaxe JavaScript : | object.style.textDecorationColor="red" |
Prise en charge du navigateur
Les nombres dans le tableau indiquent la première version du navigateur prenant en charge cette propriété.
Les nombres avec -webkit- ou -moz- indiquent la première version utilisant le préfixe.
Chrome | IE / Edge | Firefox | Safari | Opera |
---|---|---|---|---|
57.0 | 79.0 | 36.0 6.0 -moz- |
12.1 7.1 -webkit- |
44.0 |
- Page précédente text-decoration
- Page suivante text-decoration-line