CSS3 text-justify属性
text-justify属性指定文本对齐设置为"justify"的理据,指定应如何对齐文本以及对齐间距。
语法:
text-justify: auto|inter-word|inter-ideograph|inter-cluster|distribute|kashida|trim;
参数:
auto:浏览器决议齐行算法。
none:禁用齐行。
inter-word:增添/削减单词间的距离。经由过程调解单词之间的间距来对齐文本,从而有效地建立其他单词间距。这实际上是word-spacing属性的变体。
inter-ideograph:用表意文原本排齐内容。
inter-cluster:只对不包括内部单词距离的内容(比方亚洲语系)举行排齐。
distribute:相似报纸版面,除了在东亚语系中末了一行是不齐行的。
kashida:经由过程拉伸字符来排齐内容。
注:只要 Internet Explorer 支撑 text-justify 属性。
CSS3 text-justify属性的运用示例
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <style> div { text-align:justify; text-justify:inter-word; } </style> </head> <body> <h1>CSS text-justify 实例</h1> <div>ki4网</div> <p><b>提醒:</b>请调解浏览器窗口的大小,来检察齐行结果。</p> </body>
结果图:
以上就是css3 text-justify属性怎样用的细致内容,更多请关注ki4网别的相干文章!