[英]How to perform a double strikethrough on text with inline css?
我希望我的文本有 2 个删除线,但只使用内联 CSS 。
我怎样才能做到这一点?
您可以使用带有text-decoration-style: double
的del
标签来添加双删除线。
<del style="text-decoration-style: double;">Text with double strike through</del>
要在span
或其他标签内的普通文本上应用双删除线,您可以使用text-decoration: line-through
和text-decoration-style: double
。
<span style="text-decoration: line-through; text-decoration-style: double;">Text with double strikethrough</span>
你可以使用渐变:
<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>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.