<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>CSS中a标签四个状态</title>
<style type="text/css">
*{
text-align: center;
}
a{
text-decoration: none;
list-style: none;
float: left;
padding: 10px;
}
a:link{
font-family: "微软雅黑";
color: yellowgreen;
}
a:hover{
text-decoration: underline ;
color:darkblue;
}
a:active{
color: hotpink;
text-decoration: overline;
}
a:visited{
color:darkred;
color:teal;
}
on:target{
background-image: url(img/3.jpg);
}
</style>
</head>
<body>
<nav>
<ul>
<a href="#"><li>设为首页</li></a>
<a href="#"> <li>你好</li></a>
<a href="#"> <li>移动客户端</li></a>
<a href="#"><li>pad版</li></a>
</ul>
</nav>
</body>
</html>
a标签的四个状态
最新推荐文章于 2021-04-17 16:27:58 发布