Blogger Information
Blog 16
fans 1
comment 0
visits 10065
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
0321
烟火的博客
Original
692 people have browsed it
实例
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>0321作业</title>
	<style type="text/css">
		div {
			width: 450px;
			height: 450px;
			background-color: yellow;
		}

		
		#选择器 {
			background-color: lightblue;
			
		
				}
		.类选择器{
			background-color:green;	
		}
		
		*[id] {
			background-color: red;
			font-size: 15px;
		}

		*[class="类选择器2"]{
			background-color: blue;
			font-size: 35px;
		}
	</style>
</head>
<body>
	<div>
		<ul>
			<li id="选择器1">选择器</li>
			<li>我是多余的</li>
			<li class="类选择器">类选择器</li>
			<li>我是多余的</li>
			<li id="选择器2">选择器</li>
			<li class="类选择器">类选择器</li>
			<li>我是多余的</li>
			<li class="类选择器2">类选择器2</li>
			<li>我是多余的</li>
			<li class="类选择器2">类选择器2</li>
			<li>我是多余的</li>
		</ul>
	</div>
</body>
</html>
运行实例 »
点击 "运行实例" 按钮查看在线实例


Correction status:Uncorrected

Teacher's comments:
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post