如何在 CSS 中設定文字之間的空白?
要設定文字之間的空白,請使用 white-space 屬性。可能的值為 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>
廣告
資料結構
網路
RDBMS
作業系統
Java
iOS
HTML
CSS
Android
Python
C 程式設計
C++
C#
MongoDB
MySQL
Javascript
PHP