How to Double Strikeout a Text in HTML?

前端 未结 9 682
一向
一向 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:17

    Here another code, again with the known draw-backs: Additional code-requirements in the HTML (a span tag inside the del tag) and dependence on font size. This code has the advantages that it allows for multiple lines to have double line-through:

    del.double-strike {
      position: relative;
      top: 20px; /*this depends on font size!*/
      border-top: 3px double black; /*this is the actual "double line-through"*/
      text-decoration:none; /*suppress normal line-through of del tag*/
    }
    del.double-strike span {
      position: relative;
      top: -20px; /*this must mach the above offset*/
    }
    

提交回复
热议问题