<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
/*
伪类选择器: 对元素处于某种状态下进行样式的
注意:伪标签选择器需要遵守原来的优先级
*/
a:link{color:#00C}/*没有选中*/
a:visited{color:#FF0;}/*已经被访问过的*/
a:hover{color:#0C3}/*鼠标经过*/
a:active{color:#F0C}/*选定的链接*/
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>伪类选择器</title>
</head>
<body>
<a href="#">百度</a>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
/*
伪类选择器: 对元素处于某种状态下进行样式的
注意:伪标签选择器需要遵守原来的优先级
*/
a:link{color:#00C}/*没有选中*/
a:visited{color:#FF0;}/*已经被访问过的*/
a:hover{color:#0C3}/*鼠标经过*/
a:active{color:#F0C}/*选定的链接*/
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>伪类选择器</title>
</head>
<body>
<a href="#">百度</a>
</body>
</html>