<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>无标题文档</title>
<style>
/*
link 未访问(默认)
hover 鼠标悬停(鼠标划过)
active 链接激活(鼠标按下)
visited 访问过后(点击过后)
IE6不支持a以外其它任何标签的伪类;
IE6以上的浏览器支持所有标签的hover伪类;
*/
a:link{ font-size:60px; text-decoration:none; color:green;}
a:visited{color:black;}
a:hover{color:red; text-decoration:underline;}
a:active{color:yellow;}
div{height:100px; background:blue;}
div:hover{background:red;}
*{color:pink;}
</style>
</head>
<body>
<a href="#">a标签(链接,下载,锚点)</a>
<div></div>
</body>
</html>
a标签
最新推荐文章于 2018-02-28 16:44:00 发布