如何在CSS中的文本之间设置空格?
要设置文本之间的空白,使用 空白属性。可能的值是normal,pre,nowrap。
示例
您可以尝试运行以下代码来设置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>