我希望我的文本有两个删除线,但只使用内联CSS。
我怎样才能做到这一点?
最佳答案
您可以将del
标记与text-decoration-style: double
一起用于双删除线。
<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>