老师请看一下2-20编程练习的作业有什么问题
来源:2-20 编程练习
慕运维8578094
2022-03-28 11:31:28
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>伪类选择器</title>
<style type="text/css">
p{height:30px;}
a{
text-decoration:none;
}
/* 没有被访问过 */
a:link {
color:orange;
}
/* 当访问过链接之后 */
.suit a:visited {
color:green;
}
.wc a:visited{
color:aqua;
}
.skin a:visited{
color:rgb(224, 26, 191);
}
/* 当鼠标悬停在链接上*/
a:hover {
font-size: 20px;
border:1px solid red
}
/* 正在被激活的链接 */
a:active{
}
</style>
</head>
<body>
<h2>商品列表</h2>
<p class="suit">
<a href="#">衣服鞋帽</a>
</p>
<p class="wc">
<a href="#">厕所清洁</a>
</p>
<p class="skin">
<a href="#">化妆用品</a>
</p>
</body>
</html>
1回答
樱桃小胖子
2022-03-28
同学你好,代码效果实现的是可以的,继续加油,祝学习愉快!
相似问题