CSS multiple text-decoration

后端 未结 2 2228
陌清茗
陌清茗 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

提交回复
热议问题