CSS3 text-justify 屬性
實例
改變字與字之間的間距使得每行對齊:
div
{
text-align:justify;
text-justify:inter-word;
}
流覽器支持
表格中的數字表示支持該屬性的第一個流覽器版本號。
| 屬性 | |||||
|---|---|---|---|---|---|
| text-justify | 不支持 | 5.5 | 不支持 | 不支持 | 不支持 |
屬性定義及使用說明
text-justify屬性指定文本對齊設置為"justify"的理據。
此屬性指定應怎樣對齊文本以及對齊間距。
| 默認值: | auto |
|---|---|
| 繼承: | yes |
| 版本: | CSS3 |
| JavaScript 語法: | object.style.textJustify="inter-word" |
語法
text-justify: auto|inter-word|inter-ideograph|inter-cluster|distribute|kashida|trim;
| 值 | 描述 |
|---|---|
| auto | 流覽器決定齊行演算法。 |
| none | 禁用齊行。 |
| inter-word | 增加/減少單詞間的間隔。 |
| inter-ideograph | 用表意文本來排齊內容。 |
| inter-cluster | 只對不包含內部單詞間隔的內容(比如亞洲語系)進行排齊。 |
| distribute | 類似報紙版面,除了在東亞語系中最後一行是不齊行的。 |
| kashida | 通過拉伸字元來排齊內容。 |
