小白教程
所有教程
关于
Search
172.69.6.111
172.69.6.111
参数设置
贡献
退出
操作
编辑
移动
保护
信息
历史
删除
查看“Css3 pr text justify”的源代码
本页内容
上一节:
Css3_pr_text_align_last
下一节:
Css3_pr_text_outline
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{DISPLAYTITLE:text-justify}}[[Category:css reference|195]] = CSS3 text-justify 属性 = 改变字与字之间的间距使得每行对齐: <sample title="" desc="" lang="html" hererun="1"> div { text-align:justify; text-justify:inter-word; } </sample> <run name=""> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>小白教程(xiaobai.wang)</title> <style> div { text-align:justify; text-justify:inter-word; } </style> </head> <body> <h1>CSS text-justify实例</h1> <div>In my younger and more vulnerable years my father gave me some advice that I've been turning over in my mind ever since. 'Whenever you feel like criticizing anyone,' he told me, 'just remember that all the people in this world haven't had the advantages that you've had.'</div> <p><b>提示:</b> 调整浏览器窗口的大小, 以查看“text-justify”如何工作</p> <p><b>注意:</b>text-justify 只兼容IE浏览器.</p> </body> </html> </run> == 浏览器支持 == 表格中的数字表示支持该属性的第一个浏览器版本号。 {| class="table table-striped table-hover" ! 属性 ! Chrome ! Internet Explorer / Edge ! Firefox ! Safari ! Opera |- | text-justify | 不支持 | 5.5 | 不支持 | 不支持 | 不支持 |} == 属性定义及使用说明 == text-justify属性指定文本对齐设置为"justify"的理据。 此属性指定应怎样对齐文本以及对齐间距。 {| class="table table-striped table-hover" | 默认值: | auto |- | 继承: | yes |- | 版本: | CSS3 |- | JavaScript 语法: | object.style.textJustify="inter-word" |} == 语法 == text-justify: auto|inter-word|inter-ideograph|inter-cluster|distribute|kashida|trim; {| class="table table-striped table-hover" ! 值 ! 描述 |- | auto | 浏览器决定齐行算法。 |- | none | 禁用齐行。 |- | inter-word | 增加/减少单词间的间隔。 |- | inter-ideograph | 用表意文本来排齐内容。 |- | inter-cluster | 只对不包含内部单词间隔的内容(比如亚洲语系)进行排齐。 |- | distribute | 类似报纸版面,除了在东亚语系中最后一行是不齐行的。 |- | kashida | 通过拉伸字符来排齐内容。 |}
返回至“
Css3 pr text justify
”。
上一节:
Css3_pr_text_align_last
下一节:
Css3_pr_text_outline