案例:CSS3 案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<html>
2
<head>
3
4
<style type="text/css">
5
6
body {background-color: yellow}
7
h1 {background-color: #00ff00}
8
h2 {background-color: transparent}
9
p {background-color: rgb(250,0,255)}
10
11
p.no2 {background-color: gray; padding: 20px;}
12
13
</style>
14
15
</head>
16
17
<body>
18
19
<h1>这是标题 1</h1>
20
<h2>这是标题 2</h2>
21
<p>这是段落</p>
22
<p class="no2">这个段落设置了内边距。</p>
23
24
</body>
25
</html>
26