<a>标签的不同状态

来源:互联网 发布:李嘉诚 王健林 知乎 编辑:程序博客网 时间:2024/05/14 10:24

1.a:link (没有访问的链接,也就是网页下链接的正常状态)
2.a:visted (已经访问过的链接)
3.a:hover (鼠标悬浮在链接上的状态)
4.a:active (鼠标点击时 的状态)

a:link {    color:red;    text-decoration:underline;}a:visited {    color:yellow;    text-decoration:none;}a:hover {    color:blue;    text-decoration:none;    }  a:active {    color:green;    text-decoration:none;}