Blogger Information
Blog 34
fans 0
comment 1
visits 24224
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
【3.21】PHP作业
51靓号网-专注QQ靓号十年精品
Original
539 people have browsed it

3.26作业.png

实例

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>元素选择器与属性选择器</title>
	<style type="text/css">
     #w {
     	background-color: red;
     }

     .blue {
     	background-color: lightgreen;
     }

     .red {
          background-color: lightblue;
     }

     ul li {
     	color: blue;
     }

     li[class="kkkokk"] {
          background-color: brown;
     }

     li[class *= "o"] {
          background-color: coral;
     }
     
     li[class ~="cde"] {
          background-color: lime;
     }

     li[class $= "p"] {
          background-color: yellowgreen;
     }
	</style>
</head>
<body>
	<ul type="none">
     <li id="w">王</li>
     <li>者</li>
     <li class="blue">荣</li>
     <li class="qvsdepp">耀</li>
     <li id="k">坑</li>
     <li class="red">太</li>
     <li class="bluored">多</li>
     <li class="kkkokk">是</li>
     <li class="ab cde">不</li>
     <li class="ooooo">是</li>
	</ul>

</body>
</html>

运行实例 »

点击 "运行实例" 按钮查看在线实例


Correction status:qualified

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