超链接状态有四种:
link - 初始状态,从未被访问过。
visited - 已访问过。
hover - 鼠标悬停于超链的上方。
active - 鼠标左键点击下去,但是尚未弹起的时候。
为了方便我们认识,我们进行一个小测试
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>练习</title>
</head>
<body>
<style type="text/css">
a:link{
color: yellow;
}
a:visited{
color: red;
}
a:hover{
color: blue;
}
a:active{
color: pink;
}
</style>
<a href="https://www.jd.com/">测试</a>
</body>
</html>