Estilo textDecorationStyle Propiedad
Ejemplo
Muestre una línea ondulada debajo de un elemento:
document.getElementById("demo").style.textDecorationStyle = "wavy";
Definición y uso
La propiedad textDecorationStyle establece o devuelve cómo se mostrará la línea, si la hay.
Compatibilidad con navegador
Property | |||||
---|---|---|---|---|---|
textDecorationStyle | 57.0 | 79.0 | 36.0 6.0 Moz |
12.1 | 44.0 |
Sintaxis
Devuelve la propiedad textDecorationStyle:
object.style.textDecorationStyle
Establezca la propiedad textDecorationStyle:
object.style.textDecorationStyle = "solid|double|dotted|dashed|wavy|initial|inherit"
Valores de propiedad
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 |
Detalles técnicos
Valor por defecto: | sólido |
---|---|
Valor devuelto: | Una cadena, que representa la propiedad de estilo de decoración de texto de un elemento |
Versión CSS | CSS3 |
páginas relacionadas
Referencia de CSS: propiedad de estilo de decoración de texto
❮ Objeto de estilo