Estilo textoDecoraciónColor Propiedad
Ejemplo
Cambia el color de la línea, en un texto subrayado:
document.getElementById("demo").style.textDecorationColor = "red";
Definición y uso
La propiedad textDecorationColor especifica el color de la decoración del texto (subrayados, superpuestos, líneas continuas).
Nota: La propiedad textDecorationColor solo tendrá efecto en elementos con una decoración de texto visible.
Compatibilidad con navegador
Property | |||||
---|---|---|---|---|---|
textDecorationColor | 57 | 79.0 | 36.0 6.0 Moz |
7.1 Webkit | 44.0 |
Sintaxis
Devuelve la propiedad textDecorationColor:
object.style.textDecorationColor
Establezca la propiedad textDecorationColor:
object.style.textDecorationColor = "color|initial|inherit"
Valores de propiedad
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 |
Detalles técnicos
Valor por defecto: | color actual |
---|---|
Valor de retorno: | Una cadena, que representa la propiedad text-decoration-color de un elemento |
Versión CSS | CSS3 |
páginas relacionadas
Referencia CSS: propiedad text-decoration-color
❮ Objeto de estilo