使用CSS控制文本的流向和格式
在 白色空间属性被用于控制流量和文本格式化。
示例
您可以尝试运行以下代码来实现空白属性以控制文本流:
<html>
<head>
</head>
<body>
<p style = "white-space:pre;">
This text has a line break and the white-space pre setting tells the browser to honor
it just like the HTML pre tag.</p>
</body>
</html>