<!DOCTYPE html>
<html lang="en"> <!-- language为 English -->
<head>
<meta charset="UTF-8"> <!-- 声明字符编码格式 -->
<title>选择器</title>
<style type="text/css">
x{
color: red;
}
.r{
font-size: 20px;
}
#p{
color: yellow;
}
x.r{
text-decoration: underline
}
</style>
</head>
<body>
<x>标记选择器</x>
<p class="r">类别选择器</p>
<p id="p">ID选择器</p>
<p style="color: green;font-size: 20px">行内样式</p>
<x id="x" class="r">交集选择器</x>
</body>
</html>
CSS选择器
最新推荐文章于 2022-11-05 11:35:29 发布