首页 > 代码库 > css 伪类
css 伪类
网址:http://www.dreamdu.com/css/pseudo-classes/
<!DOCTYPE html><html><head><style>div:link { background-color:blue;}div:visited { background-color:blue;}div:hover { background-color:red;}div:active { background-color:yellow;}</style></head><body><div style="height:100px;boder;border: 1px solid white;">将鼠标指针移动到这个链接上将鼠标指针移动到这个链接上将鼠标指针移动到这个链接上将鼠标指针移动到这个链接上将鼠标指针移动到这个链接上:<a href="http://www.w3school.com.cn">w3school.com.cn</a></div></body></html>
a:link {color:#FF0000;} /* 未被访问的链接 */
a:visited {color:#00FF00;} /* 已被访问的链接 */
a:hover {color:#FF00FF;} /* 鼠标指针移动到链接上 */
a:active {color:#0000FF;} /* 正在被点击的链接 */
css 伪类
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。