Stile textDecorationColor Proprietà
Esempio
Cambia il colore della linea, in un testo sottolineato:
document.getElementById("demo").style.textDecorationColor = "red";
Definizione e utilizzo
La proprietà textDecorationColor specifica il colore della decorazione del testo (sottolineature, sovralineature, linee passanti).
Nota: la proprietà textDecorationColor avrà effetto solo sugli elementi con una decorazione di testo visibile.
Supporto browser
Property | |||||
---|---|---|---|---|---|
textDecorationColor | 57 | 79.0 | 36.0 6.0 Moz |
7.1 Webkit | 44.0 |
Sintassi
Restituisce la proprietà textDecorationColor:
object.style.textDecorationColor
Imposta la proprietà textDecorationColor:
object.style.textDecorationColor = "color|initial|inherit"
Valori di proprietà
Value | Description |
---|---|
color | Specifies the color of the text-decoration |
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: | currentColor |
---|---|
Valore di ritorno: | Un oggetto String, che rappresenta la proprietà text-decoration-color di un elemento |
Versione CSS | CSS3 |
Pagine correlate
Riferimento CSS: proprietà text-decoration-color
❮ Oggetto stile