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

text-align Attribute | textAlign Property

Internet Development Index

Sets or retrieves whether the text in the object is left-aligned, right-aligned, centered, or justified.

Syntax

HTML { text-align : sAlign }
Scriptingobject.style.textAlign [ = sAlign ]

Possible Values

sAlignString that specifies or receives one of the following values:
leftDefault. Text is aligned to the left.
rightText is aligned to the right.
centerText is centered.
justifyText is justified.

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 left. 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

The property applies to block elements. The property is inherited by all block-level objects inside a div object. This parameter receives null if the attribute is not set.

The justify possible value is available as of Microsoft® Internet Explorer 4.0.

Examples

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

This example uses p as a selector and two classes to call an embedded style sheet that aligns the text according to the respective rule.

<STYLE>
P { text-align:center }
.align1 { text-align:right }
.align2 { text-align:justify }
</STYLE>
</HEAD>
<BODY>
<P onclick= "this.className='align1'"
ondblclick="this.className='align2'">
. . . </P>
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.

<P STYLE="font-size:14"
onmouseover="this.style.textAlign='center'">
. . . </P>
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 defined in Cascading Style Sheets (CSS), Level 1 (CSS1) Non-Microsoft link.

Applies To

BLOCKQUOTE, BODY, CENTER, currentStyle, DD, DIR, DIV, DL, DT, FIELDSET, FORM, hn, HR, INPUT type=password, INPUT type=text, LI, LISTING, MARQUEE, MENU, OL, P, PLAINTEXT, PRE, runtimeStyle, style, TABLE, TD, TEXTAREA, TH, TR, UL, XMP
康乐县| 斗六市| 宁陕县| 百色市| 阿勒泰市| 新蔡县| 滕州市| 屏山县| 临汾市| 枣强县| 监利县| 措勤县| 天全县| 徐闻县| 三穗县| 特克斯县| 交城县| 贵定县| 柳河县| 望奎县| 土默特左旗| 雷州市| 奈曼旗| 贵州省| 怀远县| 鄢陵县| 曲阜市| 阜新市| 咸宁市| 阿瓦提县| 韶关市| 邢台县| 焉耆| 蛟河市| 东源县| 孟连| 治多县| 肇东市| 清水河县| 洪湖市| 石屏县|