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

How to set the thickness of the deletion line by css

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

Share

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

This article mainly explains "how to set the thickness of the deletion line in css". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Next let the editor to take you to learn "css how to set the thickness of the deletion line"!

In css, the "text-decoration" attribute can be used to set the thickness of the delete line. When the attribute value is "line-through weight value", a delete line is defined and the thickness of the delete line is set. The syntax "element {text-decoration:line-through weight}".

The operating environment of this tutorial: windows10 system, CSS3&&HTML5 version, Dell G3 computer.

How to set the thickness of the deletion line by css

In css, you can use the text-decoration property to set the delete line and set the thickness value of the delete line, which is defined when the property value is line-through.

The syntax is as follows:

Text-decoration: line-through delete line thickness valu

Examples are as follows:

H3 {text-decoration: line-through 15px} this is title 2

Output result:

H3 {text-decoration: line-through 1px} this is title 2

Output result:

At this point, I believe you have a deeper understanding of "how to set the thickness of the deletion line in css". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue 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: 0

*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