text-justify: auto | inter-word | newspaper | distribute | distribute-all-lines | inter-ideograph;
| 值 | 行為 |
|---|---|
auto | 瀏覽器自動決定兩端對齊規則 |
inter-word | 增加字與字間空格,最快,最後一行不生效 |
newspaper | 增減字/字母間空格,拉丁字母最精確 |
distribute | 類似 newspaper,適用東亞文檔(特別是泰文) |
distribute-all-lines | 同 distribute,但包含段落最後一行,適用表意字 |
inter-ideograph | 表意字全兩端對齊,增減表意字與詞間空格 |
設定或檢索對象內文本的對齊方式。對應腳本特性 textJustify。
div { text-justify: auto; }