Style textDecorationStyle Property
Exemplo
Exiba uma linha ondulada sob um elemento:
document.getElementById("demo").style.textDecorationStyle = "wavy";
Definição e uso
A propriedade textDecorationStyle define ou retorna como a linha, se houver, será exibida.
Suporte ao navegador
Property | |||||
---|---|---|---|---|---|
textDecorationStyle | 57.0 | 79.0 | 36.0 6.0 Moz |
12.1 | 44.0 |
Sintaxe
Retorne a propriedade textDecorationStyle:
object.style.textDecorationStyle
Defina a propriedade textDecorationStyle:
object.style.textDecorationStyle = "solid|double|dotted|dashed|wavy|initial|inherit"
Valores de propriedade
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 |
Detalhes técnicos
Valor padrão: | sólido |
---|---|
Valor de retorno: | Uma String, representando a propriedade text-decoration-style de um elemento |
Versão CSS | CSS3 |
Páginas relacionadas
Referência CSS: propriedade text-decoration-style
❮ Objeto de estilo