CSS3 text-justify 屬性
瀏覽器支持
只有 Internet Explorer 支持 text-justify 屬性。
定義和用法
text-justify 屬性規(guī)定當 text-align 被設(shè)置為 text-align 時的齊行方法。
該屬性規(guī)定如何對齊行文本進行對齊和分隔。
默認值: | 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 | 用表意文本來排齊內(nèi)容。 | 測試 |
inter-cluster | 只對不包含內(nèi)部單詞間隔的內(nèi)容(比如亞洲語系)進行排齊。 | 測試 |
distribute | 類似報紙版面,除了在東亞語系中最后一行是不齊行的。 | 測試 |
kashida | 通過拉伸字符來排齊內(nèi)容。 | 測試 |