How to remove only underline from a:before?

后端 未结 6 1935
一整个雨季
一整个雨季 2020-12-02 12:38

I have a set of styled links using the :before to apply an arrow.

It looks good in all browser, but when I apply the underline to the link, I don\'t wan

6条回答
  •  爱一瞬间的悲伤
    2020-12-02 13:12

    Wrap your links in spans and add the text-decoration to the span on the a:hover like this,

    a:hover span {
       text-decoration:underline;
    }
    

    I have updated your fiddle to what I think you are trying to do. http://jsfiddle.net/r42e5/4/

提交回复
热议问题