案例:CSS案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<html>
2
<head>
3
<style type="text/css">
4
p {white-space: pre;}
5
</style>
6
</head>
7
8
<body>
9
10
<p>This     paragraph has    many
11
    spaces           in it.</p>
12
13
<p>注释:当 white-space 属性设置为 pre 时,浏览器不会合并空白符,也不会忽略换行符。</p>
14
15
</body>
16
17
</html>
18