使用 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>
廣告
資料結構
網路
關係型資料庫管理系統
作業系統
Java
iOS
HTML
CSS
Android
Python
C 程式設計
C++
C#
MongoDB
MySQL
Javascript
PHP