CSS multiple text-decoration

后端 未结 2 2229
陌清茗
陌清茗 2021-02-20 09:28

I want to have the

underlined and blinking at the same time.
Is there any way to achieve this modifying only the CSS style of

相关标签:
2条回答
  • 2021-02-20 09:54

    Easiest is to set border-bottom to your h2:

    h2 { 
       border-bottom:1px solid black;
       text-decoration:blink;
    }
    

    Please note that blink isn't supported in IE, Chrome and Safari

    0 讨论(0)
  • 2021-02-20 09:55

    You need to space separate them:

    text-decoration: underline overline line-through;
    

    http://jsfiddle.net/PamjT/

    0 讨论(0)
提交回复
热议问题