How to write :hover condition for a:before and a:after?
问题 How to write :hover and :visited condition for a:before ? I\'m trying a:before:hover but it\'s not working 回答1: This depends on what you're actually trying to do. If you simply wish to apply styles to a :before pseudo-element when the a element matches a pseudo-class, you need to write a:hover:before or a:visited:before instead. Notice the pseudo-element comes after the pseudo-class (and in fact, at the very end of the entire selector). Notice also that they are two different things; calling