Style textDecorationStyle Właściwość
Przykład
Wyświetl falistą linię pod elementem:
document.getElementById("demo").style.textDecorationStyle = "wavy";
Definicja i użycie
Właściwość textDecorationStyle ustawia lub zwraca sposób wyświetlania wiersza, jeśli istnieje.
Obsługa przeglądarki
Property | |||||
---|---|---|---|---|---|
textDecorationStyle | 57.0 | 79.0 | 36.0 6.0 Moz |
12.1 | 44.0 |
Składnia
Zwróć właściwość textDecorationStyle:
object.style.textDecorationStyle
Ustaw właściwość textDecorationStyle:
object.style.textDecorationStyle = "solid|double|dotted|dashed|wavy|initial|inherit"
Wartości nieruchomości
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 |
Szczegóły techniczne
Domyślna wartość: | solidny |
---|---|
Wartość zwrotu: | String, reprezentujący właściwość text-decoration-style elementu |
Wersja CSS | CSS3 |
Powiązane strony
Odniesienie CSS: właściwość text-decoration-style
❮ Obiekt stylu