How to remove an underline on a pseudo-element?

前端 未结 3 606
南笙
南笙 2020-12-30 07:34

On Chrome and Firefox, if I apply a text-decoration:underline on a tag, by default the underline does not apply to the pseudo element. But on IE it does, and I can\'t remove

3条回答
  •  一向
    一向 (楼主)
    2020-12-30 08:14

    you can add this to your css. this helped me in the IE

    a {text-decoration:none;}
    a:hover {text-decoration:underline;}
    a:before,a:after { text-decoration:underline;}
    a:before,a:after,
    a:hover:before,a:hover:after {text-decoration:none;}
    

提交回复
热议问题