<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
/* 标签选择器 */
ul {
color: red;
}
/* 类选择器 */
.lei {
color: pink;
}
/* id选择器 */
#id {
color: greenyellow;
}
/* 通配符选择器 */
* {
font-weight: 700;
}
</style>
</head>
<body>
<p class="lei">11111</p>
<p id="id">22222</p>
<p>33333</p>
<p></p>
<ul>
<li>1、</li>
<li>2、</li>
<li>3、</li>
<li>4、</li>
</ul>
</body>
</html>
四种基础选择器(第5天)
猜你喜欢
转载自blog.csdn.net/weixin_51800059/article/details/112982251
今日推荐
周排行