Style textDecorationStyle Property
Voorbeeld
Geef een golvende lijn weer onder het element an:
document.getElementById("demo").style.textDecorationStyle = "wavy";
Definitie en gebruik
De eigenschap textDecorationStyle bepaalt of retourneert hoe de regel, indien aanwezig, wordt weergegeven.
Browserondersteuning
Property | |||||
---|---|---|---|---|---|
textDecorationStyle | 57.0 | 79.0 | 36.0 6.0 Moz |
12.1 | 44.0 |
Syntaxis
Retourneer de eigenschap textDecorationStyle:
object.style.textDecorationStyle
Stel de eigenschap textDecorationStyle in:
object.style.textDecorationStyle = "solid|double|dotted|dashed|wavy|initial|inherit"
Eigendomswaarden
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 |
Technische details
Standaardwaarde: | stevig |
---|---|
Winstwaarde: | Een tekenreeks, die de eigenschap text-decoration-style van een element vertegenwoordigt |
CSS-versie | CSS3 |
Gerelateerde pagina's
CSS-referentie: eigenschap text-decoration-style
❮ Stijlobject