W3School TIY
编辑您的代码:
<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>
查看结果: