How to Double Strikeout a Text in HTML?

前端 未结 9 680
一向
一向 2021-02-07 04:26

I know about , and tags. These tags strike out a text once, however I want to strike out a text 2 time

9条回答
  •  逝去的感伤
    2021-02-07 05:02

    I've used a background image for this purpose before.

    Sample CSS:

    .s2 { 
        background: url('dblstrike.gif');
        background-repeat: repeat-x;
        background-position: center left;
        background-attachment: scroll;
        }
    

    Where dblstrike.gif is a repeatable image with two horizontal lines.

    This only works under limited conditions, you would for example need different background images for different font-sizes.

提交回复
热议问题