I want my text to have 2 strikethroughs but using only inline CSS .
How can I achieve this?
You can use the del
tag with text-decoration-style: double
for a double strikethrough.
<del style="text-decoration-style: double;">Text with double strike through</del>
To apply a double strikethrough on normal text inside a span
or other tag, you can use text-decoration: line-through
and text-decoration-style: double
.
<span style="text-decoration: line-through; text-decoration-style: double;">Text with double strikethrough</span>
See also: text-decoration-style
, text-decoration
你可以使用渐变:
<span style="background:linear-gradient(#000,#000) 50% 35%/100% 1px no-repeat,linear-gradient(#000,#000) 50% 65%/100% 1px no-repeat;">some text to strike</span>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.