[英]How to perform a double strikethrough on text with inline css?
我希望我的文本有 2 個刪除線,但只使用內聯 CSS 。
我怎樣才能做到這一點?
您可以使用帶有text-decoration-style: double
的del
標簽來添加雙刪除線。
<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>
你可以使用漸變:
<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.