Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the use of the text-decoration-color attribute in css

2025-04-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 283

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report