<style>
/* 为访问过的链接a:link把没有点击过的(访问过的)链接 */
a:link {
color: pink;
text-decoration: none;
}
/* a:visited 选择点击过的(访问过的)链接 */
a:visited {
color: red;
}
a:hover {
color:darkblue
}
/* 鼠标按下不松开颜色变 */
a:active {
color: green;
}
</style>
1 注意事项
2 实际开发中的写法