How to set the thickness of the deletion line by css
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!