Answers:
此仅IE的属性对text-align
属性中使用的“ justify”值进行了细化。实际上,必须为该属性设置“合理”值才能text-justify
生效。
text-justify
对所包含的内容提供了很好的对齐控制,从而允许在不同的语言编写系统中使用各种复杂的对齐模型。
例
<p style="text-align: justify; text-justify: newspaper;">
This is “Newspaper” justified content
</p>
VALUE DESCRIPTION
---------------------- ---------------------------------------------------------------------
auto The browser will determine the appropriate justification algorithm
to use
distribute Justification is handled similarly to the “newspaper” value,
but this version is optimized for East Asian content
(especially the Thai language.)
In this justification method, the last line is not justified.
distribute-all-lines Behavior and intent for this value is the same as with the
“distribute” value, but the last line is also justified.
inter-cluster Justifies content that does not have any inter-word spacing
(such as with many East Asian languages.)
inter-ideograph Used for justifying blocks of ideographic content.
Justification is achieved by increasing or decreasing spacing
between ideographic characters and words as well.
inter-word Justification is achieved by increasing the spacing between words.
It is the quickest method of justification and does not justify
the last line of a content block.
newspaper Spacing between letters and words are increased or decreased
as necessary.
IE参考资料说:“这是拉丁字母对齐的最复杂形式。”
来源:http://www.css3.com/css-text-justify/
希望这可以帮助!
除了使用text-justify
似乎目前仅受IE支持的之外,还可以考虑添加连字符,显式的连字符提示­
和/或基于浏览器的自动连字符,hyphens: auto
与适当的浏览器前缀配合使用或使用基于JavaScript的连字符(如Hyphenator.js)。断字通常会大大减少对齐时增加间距的需要。
The text-justify property is supported in all of the major browsers.
,来源:w3schools.com/cssref/css3_pr_text-justify.asp和Text-Align,w3schools.com
text-justify
。但是很抱歉我最初写的text-align-justify
不是text-justify
(现在已修复)。text-align: justify
这里当然暗含该设置。问题是理由类型是否可以控制。