Estilo textDecorationColor Property
Exemplo
Altere a cor da linha, em um texto sublinhado:
document.getElementById("demo").style.textDecorationColor = "red";
Definição e uso
A propriedade textDecorationColor especifica a cor da decoração do texto (sublinhados, overlines, linethroughs).
Nota: A propriedade textDecorationColor só terá efeito em elementos com uma decoração de texto visível.
Suporte ao navegador
Property | |||||
---|---|---|---|---|---|
textDecorationColor | 57 | 79.0 | 36.0 6.0 Moz |
7.1 Webkit | 44.0 |
Sintaxe
Retorne a propriedade textDecorationColor:
object.style.textDecorationColor
Defina a propriedade textDecorationColor:
object.style.textDecorationColor = "color|initial|inherit"
Valores de propriedade
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 |
Detalhes técnicos
Valor padrão: | cor atual |
---|---|
Valor de retorno: | Uma String, representando a propriedade text-decoration-color de um elemento |
Versão CSS | CSS3 |
Páginas relacionadas
Referência CSS: propriedade text-decoration-color
❮ Objeto de estilo