繁体   English   中英

如何使用内联 css 对文本执行双删除线?

[英]How to perform a double strikethrough on text with inline css?

我希望我的文本有 2 个删除线,但使用内联 CSS

我怎样才能做到这一点?

您可以使用带有text-decoration-style: doubledel标签来添加双删除线。

 <del style="text-decoration-style: double;">Text with double strike through</del>

要在span或其他标签内的普通文本上应用双删除线,您可以使用text-decoration: line-throughtext-decoration-style: double

 <span style="text-decoration: line-through; text-decoration-style: double;">Text with double strikethrough</span>

另见: text-decoration-styletext-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>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM