AI教程网 - 未来以来,拥抱AI;新手入门,从AI教程网开始......

text-justify 属性

CSS参考手册 AI君 55℃

CSS3 text-justify 属性

实例

Justification改变字与字之间的间距:

  
    div
{
text-align:justify;
text-justify:inter-word;
}


浏览器支持

表格中的数字表示支持该属性的第一个浏览器版本号。

Property
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 通过拉伸字符来排齐内容。

转载请注明:www.ainoob.cn » text-justify 属性

喜欢 (0)or分享 (0)