CSS text-model-color property
Change the color of the underscore in the underscore text:
{
text-decoration: underline;
text-decoration-color: red;
-moz-text-decoration-color: red; / * For Firefox code * /
}
Try it out . . .
Browser support
Almost all major browsers do not support the text-model-color property.
Firefox supports another property that replaces this property, the -moz-text-color property.
Definitions and usages
The text-decoration-color property specifies the color of the text modification (underline, overline, line-through).
Note: The text-style-color property only works on elements with visible text-style.
Default: | currentColor |
---|---|
Inherited: | Whether |
Animated: | Is. See Animation . Give it a try |
Version: | CSS3 |
JavaScript syntax: | object .style.textDecorationColor="red" Give it a try |
CSS syntax
The property value
value | describe | test |
---|---|---|
color | Specify the color of text modification. | test " |
initial | Set this property for its default value.See initial 。 | test " |
inherit | Inheriting this property from the parent element.See inherit 。 |