我希望我的文本有两个删除线,但只使用内联CSS。
我怎样才能做到这一点?

最佳答案

您可以将del标记与text-decoration-style: double一起用于双删除线。

<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>

10-07 21:50