Stile textDecorationStyle Proprietà
Esempio
Visualizza una linea ondulata sotto un elemento:
document.getElementById("demo").style.textDecorationStyle = "wavy";
Definizione e utilizzo
La proprietà textDecorationStyle imposta o restituisce come verrà visualizzata la riga, se presente.
Supporto browser
Property | |||||
---|---|---|---|---|---|
textDecorationStyle | 57.0 | 79.0 | 36.0 6.0 Moz |
12.1 | 44.0 |
Sintassi
Restituisce la proprietà textDecorationStyle:
object.style.textDecorationStyle
Imposta la proprietà textDecorationStyle:
object.style.textDecorationStyle = "solid|double|dotted|dashed|wavy|initial|inherit"
Valori di proprietà
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 |
Dettagli tecnici
Valore di default: | solido |
---|---|
Valore di ritorno: | Un oggetto String, che rappresenta la proprietà in stile decorazione del testo di un elemento |
Versione CSS | CSS3 |
Pagine correlate
Riferimento CSS: proprietà text-decoration-style
❮ Oggetto stile