使用 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>
廣告