CSS3 text-justify property
Examples
Justification change the spacing between words:
div
{
text-align: justify;
text-justify: inter-word;
}
{
text-align: justify;
text-justify: inter-word;
}
try it"
Browser Support
Figures in the table represent the first browser to support the version number of the property.
属性 | |||||
---|---|---|---|---|---|
text-justify | 不支持 | 5.5 | 不支持 | 不支持 | 不支持 |
Attribute definitions and instructions
text-justify property specifies the text alignment set to "justify" justifications.
This attribute specifies what should align text spacing and alignment.
Defaults: | auto |
---|---|
inherit: | yes |
version: | CSS3 |
JavaScript syntax: | object .style.textJustify = "inter-word" |
grammar
text-justify: auto | inter-word | inter-ideograph | inter-cluster | distribute | kashida | trim;
value | description |
---|---|
auto | Browser decided Qi line algorithm. |
none | Disable Qi row. |
inter-word | Increasing / decreasing interval between words. |
inter-ideograph | With ideographic text aligned to the content. |
inter-cluster | Only do not contain the content of internal word spacing (eg Asian languages) were aligned. |
distribute | Similar newspapers, in addition to the last line in the East Asian Languages are missing lines. |
kashida | By stretching characters aligned content. |