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