How to write :hover condition for a:before and a:after?

后端 未结 7 1700
北恋
北恋 2020-11-22 13:08

How to write :hover and :visited condition for a:before?

I\'m trying a:before:hover but it\'s not working

7条回答
  •  轮回少年
    2020-11-22 13:23

    You can also restrict your action to just one class using the right pointed bracket (">"), as I have done in this code:

    
    
    
      
      Document
      
    
    
    
      
      
    
    
    
    

    Note: The hover:before switch works only on the .test1 class

提交回复
热议问题