<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
a:link{
color: blue;
}
/* 没访问过的链接 */
a:visited{
color: chartreuse;
}
/* 访问过的链接,考虑到隐私,这个伪类只能修改颜色 */
a:hover{
color: coral;
}
/* 鼠标移入变色 */
a:active{
color: cyan;
}
/* 鼠标点击变色 */
</style>
</head>
<body>
<a href="http://www.baidu.com">访问过的链接</a>
<br><br>
<a href="http://www.baidu123.com">没访问过的链接</a>
</body>
</html>