案例:CSS3 案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<style>
5
p:before
6
{
7
content:"台词:";
8
}
9
</style>
10
</head>
11
12
<body>
13
14
<p>我是唐老鸭。</p>
15
<p>我住在 Duckburg。</p>
16
17
<p><b>注释:</b>对于在 IE8 中工作的 :before,必须声明 DOCTYPE。</p>
18
19
</body>
20
</html>
21