Propiedad CSS text-decoration-color
Ejemplo
Establezca el color de la decoración de texto en rojo:
p
{
text-decoration: underline;
text-decoration-color: red;
}
Definición y uso
La text-decoration-color
propiedad especifica el color de la decoración del texto (subrayados, superpuestos, líneas continuas).
Valor por defecto: | color actual |
---|---|
Heredado: | No |
Animable: | si. Leer sobre animable |
Versión: | CSS3 |
Sintaxis de JavaScript: | objeto .style.textDecorationColor="rojo" |
Compatibilidad con navegador
Los números de la tabla especifican la primera versión del navegador que es totalmente compatible con la propiedad.
Los números seguidos de -moz- o -webkit- especifican la primera versión que funcionó con un prefijo.
Property | |||||
---|---|---|---|---|---|
text-decoration-color | 57.0 | 79.0 | 36.0 6.0 -moz- |
12.1 7.1 -webkit- |
44.0 |
Sintaxis CSS
text-decoration-color: color|initial|inherit;
Valores de propiedad
Value | Description | Play it |
---|---|---|
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 |
páginas relacionadas
Tutorial CSS: Texto CSS
Referencia HTML DOM: propiedad textDecorationColor