x
 
<html>
<head>
<style type="text/css">
p {white-space: pre;}
</style>
</head>
<body>
<p>This     paragraph has    many
    spaces           in it.</p>
<p>注释:当 white-space 属性设置为 pre 时,浏览器不会合并空白符,也不会忽略换行符。</p>
</body>
</html>