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

Zor*_*gan 2 html css

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

我怎样才能做到这一点?

hev*_*ev1 6

您可以将del标签text-decoration-style: double用于双删除线.

<del style="text-decoration-style: double;">Text with double strike through</del>
Run Code Online (Sandbox Code Playgroud)

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

<span style="text-decoration: line-through; text-decoration-style: double;">Text with double strikethrough</span>
Run Code Online (Sandbox Code Playgroud)