我们习惯于注释链接伪类linke this:
a:link { color: red } /* unvisited links */
a:visited { color: blue } /* visited links */
a:hover { color: yellow } /* user hovers */
a:active { color: lime } /* active links */
来源:http://www.w3.org/TR/CSS2/selector.html#dynamic-pseudo-classes
我认为这个顺序对CSS3来说仍然正确吗?
注意:有些人提出了更精确的选择器,但这是一个不同的主题:
:link:focus, :visited:focus { ... }
:link { ... }
:visited { ... }
:link:hover, :visited:hover { ... }
:link:active, :visited:active { ... }
来源:http://www.thestyleworks.de/tut-art/pc_dynamic_a_name.shtml