Vlastnost textu styluDecorationStyle
Příklad
Zobrazte vlnovku pod prvkem an:
document.getElementById("demo").style.textDecorationStyle = "wavy";
Definice a použití
Vlastnost textDecorationStyle nastavuje nebo vrací způsob zobrazení řádku, pokud existuje.
Podpora prohlížeče
Property | |||||
---|---|---|---|---|---|
textDecorationStyle | 57.0 | 79.0 | 36.0 6.0 Moz |
12.1 | 44.0 |
Syntax
Vraťte vlastnost textDecorationStyle:
object.style.textDecorationStyle
Nastavte vlastnost textDecorationStyle:
object.style.textDecorationStyle = "solid|double|dotted|dashed|wavy|initial|inherit"
Hodnoty vlastností
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 |
Technické údaje
Výchozí hodnota: | pevný |
---|---|
Návratová hodnota: | Řetězec, představující vlastnost text-decoration-style prvku |
Verze CSS | CSS3 |
Související stránky
CSS reference: vlastnost text-decoration-style
❮ Objekt stylu