What is the use of the text-decoration-color attribute in css
This article mainly introduces the use of the text-decoration-color attribute in css, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand it.
How do I use the csstext-decoration-color attribute?
The text-decoration-color attribute specifies the color of the text embellishment (underlined underline, overlined overline, underlined line-through).
Note: the text-decoration-color attribute works only on elements with a visible text-decoration attribute.
Syntax:
Text-decoration-color:color | initial | inherit
Attribute value:
● color: specifies the color of the text embellishment.
● initial: set this property to its default value.
● inherit: inherits this attribute from the parent element.
Description: almost all major browsers do not support the text-decoration-color attribute. Firefox supports another alternative to this attribute, the-moz-text-decoration-color attribute.
Example of csstext-decoration-color property
P
{
Text-decoration:underline
Text-decoration-color:red
-moz-text-decoration-color:red;/* code for Firefox * /
}
The color of the line should be red now!
Note: almost all major browsers do not support the text-decoration-color attribute.
Note: Firefox supports another alternative to this attribute, the-moz-text-decoration-color attribute.
Thank you for reading this article carefully. I hope the article "what is the use of text-decoration-color attributes in css" shared by the editor will be helpful to you. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!