在 HTML5 中建立一個正文,使正文文字從右向左顯示
在 HTML 中可以使用 dir 屬性為一個段落設定從右到左的文字方向。為 dir 屬性新增文字值 rtl,這樣這個文字從右至左排列。
示例
你可以嘗試執行以下程式碼來實現 dir 屬性 −
<!DOCTYPE html> <html> <body> <p dir="rtl">This is demo paragraph. This is demo paragraph. This is demo paragraph. This is demo paragraph. This is demo paragraph. This is demo paragraph. This is demo paragraph.</p> </body> </html>
廣告
資料結構
網路
關係型資料庫管理系統
作業系統
Java
iOS
HTML
CSS
Android
Python
C 語言程式設計
C++
C#
MongoDB
MySQL
Javascript
PHP