StylteksDecorationStyleiendom _ _
Voorbeeld
Vertoon 'n golwende lyn onder die element:
document.getElementById("demo").style.textDecorationStyle = "wavy";
Definisie en gebruik
Die textDecorationStyle-eienskap stel of gee terug hoe die reël, indien enige, sal vertoon.
Blaaierondersteuning
Property | |||||
---|---|---|---|---|---|
textDecorationStyle | 57.0 | 79.0 | 36.0 6.0 Moz |
12.1 | 44.0 |
Sintaksis
Gee die textDecorationStyle-eienskap terug:
object.style.textDecorationStyle
Stel die textDecorationStyle-eienskap:
object.style.textDecorationStyle = "solid|double|dotted|dashed|wavy|initial|inherit"
Eiendomswaardes
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 |
Tegniese besonderhede
Standaard waarde: | soliede |
---|---|
Terugkeerwaarde: | 'n String, wat die teksversieringstyl-eienskap van 'n element voorstel |
CSS weergawe | CSS3 |
Verwante bladsye
CSS verwysing: teks-versiering-styl eiendom
❮ Stylvoorwerp