Style textDecorationStyle Property
Exemple
Affichez une ligne ondulée sous l'élément an :
document.getElementById("demo").style.textDecorationStyle = "wavy";
Définition et utilisation
La propriété textDecorationStyle définit ou renvoie la façon dont la ligne, le cas échéant, s'affichera.
Prise en charge du navigateur
Property | |||||
---|---|---|---|---|---|
textDecorationStyle | 57.0 | 79.0 | 36.0 6.0 Moz |
12.1 | 44.0 |
Syntaxe
Renvoyez la propriété textDecorationStyle :
object.style.textDecorationStyle
Définissez la propriété textDecorationStyle :
object.style.textDecorationStyle = "solid|double|dotted|dashed|wavy|initial|inherit"
Valeurs de propriété
Value | Description |
---|---|
solid | Default value. The line will display as a single line |
double | The line will display as a double line |
dotted | The line will display as a dotted line |
dashed | The line will display as a dashed line |
wavy | The line will display as a wavy line |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
Détails techniques
Valeur par défaut: | solide |
---|---|
Valeur de retour : | Une chaîne, représentant la propriété text-decoration-style d'un élément |
Version CSS | CSS3 |
Pages connexes
Référence CSS : propriété text-decoration-style
❮ Objet de style