最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

text-justify Attribute | textJustify Property

Internet Development Index

Sets or retrieves the type of alignment used to justify text in the object.

Syntax

HTML { text-justify : sAlign }
Scriptingobject.style.textJustify [ = sAlign ]

Possible Values

sAlignString that specifies or receives one of the following values.
autoDefault. Allows the browser to determine which justification algorithm to apply.
distributeHandles spacing much like the newspaper value. This form of justification is optimized for documents in Asian languages, such as Thai.
distribute-all-linesJustifies lines of text in the same way as the distribute value, except that it also justifies the last line of the paragraph. This form of justification is intended for ideographic text.
distribute-center-lastNot implemented.
inter-clusterJustifies lines of text that contain no inter-word spacing. This form of justification is optimized for documents in Asian languages.
inter-ideographJustifies lines of ideographic text, and increases or decreases both inter-ideograph and inter-word spacing.
inter-wordAligns text by increasing the space between words. This value's spacing behavior is the fastest way to make all lines of text equal in length. Its justification behavior does not affect the last line of the paragraph.
kashidaJustifies lines of text by elongating characters at chosen points. This form of justification is intended for Arabic script languages. Supported in Microsoft® Internet Explorer 5.5 and later.
newspaperIncreases or decreases the spacing between letters and between words. It is the most sophisticated form of justification for Latin alphabets.

The property is read/write for all objects except the following, for which it is read-only: currentStyle. The property has a default value of auto. The Cascading Style Sheets (CSS) attribute is inherited.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties.

Remarks

For this property to affect text layout, the textAlign property must be set to justify.

The property applies to block elements.

Examples

The following examples use the text-justify attribute and the textJustify property to align text within the object.

This example uses an inline style sheet to distribute all the lines within the object.

...
<DIV style="text-align:justify; text-justify:distribute-all-lines;">
This example demonstrates how to use this property. This is
something. This example demonstrates how to use this property.
This is something. This example demonstrates how to this
property. This is something. This example demonstrates how to use this
property. This is something. This example demonstrates how to
use this property. This is something. This example demonstrates
how to use this property. This is something. This example
demonstrates how to use this property. This is something.
This example demonstrates how to use this property. This is
something. This example demonstrates how to use this property.
</DIV>
...
This feature requires Microsoft® Internet Explorer 4.0 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

This example uses inline scripting to change the alignment of the text when an onmouseover event occurs.

...
<DIV style="cursor:hand; text-align:justify;"
onmouseover="this.style.textJustify='distribute-all-lines';"
onmouseout="this.style.textJustify='auto';">
This example demonstrates how to use this property. This is
something. This example demonstrates how to use this property.
This is something. This example demonstrates how to this
property. This is something. This example demonstrates how to use this
property. This is something. This example demonstrates how to
use this property. This is something. This example demonstrates
how to use this property. This is something. This example
demonstrates how to use this property. This is something.
This example demonstrates how to use this property. This is
something. This example demonstrates how to use this property.
</DIV>
...
This feature requires Microsoft® Internet Explorer 4.0 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

Standards Information

This property is part of a proposed addition to Cascading Style Sheets (CSS) Non-Microsoft link.

Applies To

ADDRESS, BLOCKQUOTE, BODY, CENTER, currentStyle, DD, DIR, DIV, DL, DT, FIELDSET, FORM, hn, HR, LEGEND, LI, LISTING, MARQUEE, MENU, OL, P, PLAINTEXT, PRE, runtimeStyle, style, TABLE, TD, TH, TR, UL, XMP
陵水| 株洲市| 藁城市| 兴仁县| 澜沧| 志丹县| 弥勒县| 香港| 应用必备| 锦州市| 云龙县| 博兴县| 临猗县| 梅州市| 兴业县| 乌鲁木齐市| 淳化县| 华坪县| 惠安县| 隆安县| 无棣县| 普兰店市| 新野县| 纳雍县| 天峻县| 丹寨县| 长乐市| 四会市| 石城县| 固阳县| 宁城县| 紫阳县| 利川市| 兴仁县| 滨海县| 交口县| 洪江市| 葫芦岛市| 灌云县| 桃江县| 白城市|