In the properties of a CSS hyperlink, there are four ways to connect:
A:link a:hover a:visited A:acticve
Before the use of the time has been in accordance with the order of self-thought, is the sort of L H V A, but sometimes found that it does not work, to find some information, but also on the internet to find a bit, there are many people asked this question, if it is in this order, sometimes displayed correctly, And sometimes the display is not correct, the reason, this may be due to the browser's recognition of the problem caused, also the amount can have the reason for the cache in the personal feel, and the most correct wording should be L V H, for example:
<! DOCTYPE html>"en">"UTF-8"> <title>Document</title> <style type="Text/css">a:link{color:red; Text-Decoration:none; } a:visited{Color:green; Text-Decoration:underline; } a:hover{Color:yellow; Text-Decoration:none; } a:actived{color:red; Text-Decoration:none; } </style>"#"> Baidu </a></body>All the connections, if you need to use these four pseudo-classes, in either case, as long as the order in this sequence is absolutely no error.
Again, the correct sequence is: L V H A
Ordering of connection properties in CSS