Is there an opposite CSS pseudo-class to :hover?

前端 未结 4 789
借酒劲吻你
借酒劲吻你 2020-12-13 03:33

Is there a pseudo-class in CSS to specify

:not(:hover)

Or is that the only way to specify an item that is not being hovered?

I wen

4条回答
  •  感情败类
    2020-12-13 03:43

    a {
      /*styles*/
    } 
    

    is a normal (non hovered link)

    a:hover {
      /*styles*/
    } 
    

    is a hovered link

提交回复
热议问题