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

text-indent Attribute | textIndent Property

Internet Development Index

Sets or retrieves the indentation of the first line of text in the object.

Syntax

HTML { text-indent : sIndent }
Scriptingobject.style.textIndent [ = sIndent ]

Possible Values

sIndentVariant that specifies or receives one of the following values:
lengthFloating-point number, followed by an absolute units designator (cm, mm, in, pt, pc, or px) or a relative units designator (em or ex). For more information about the supported length units, see CSS Length Units Reference.
percentageInteger, followed by a percent sign (%). This value is a percentage of the width of the parent object.

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 0. 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 can be negative. An indent is not inserted in the middle of an object that was broken by another object, such as br in HTML.

Examples

The following examples use the text-indent attribute and the textIndent property to indent the object's text.

This example uses calls to an embedded style sheet to change the indent on the text when an onclick event occurs. The text was originally indented 2 centimeters using div as a selector in the style sheet.

<STYLE>
DIV { text-indent:2cm }
.click1 { text-indent:50% }
.click2 { text-indent: }
</STYLE>
</HEAD>
<BODY>
<DIV onclick="this.className='click1'"
ondblclick="this.className='click2'">
. . . </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 indent the text within the div when an onmouseover event occurs.

<DIV onmouseover=this.style.textIndent="2cm"
:
</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 defined in Cascading Style Sheets (CSS), Level 1 (CSS1) Non-Microsoft link.

Applies To

BLOCKQUOTE, BODY, BUTTON, CENTER, currentStyle, DD, DFN, DIR, DIV, DL, DT, FIELDSET, FORM, hn, HR, ISINDEX, LI, LISTING, MARQUEE, MENU, OL, P, PLAINTEXT, PRE, runtimeStyle, style, TABLE, TD, TH, TR, UL, XMP
方山县| 玉林市| 顺昌县| 汶上县| 宁河县| 临澧县| 疏附县| 宝应县| 禹城市| 建水县| 温州市| 会泽县| 通渭县| 广饶县| 孟州市| 丹巴县| 福州市| 江安县| 乌鲁木齐县| 元谋县| 盐亭县| 鄯善县| 集安市| 东丰县| 泰兴市| 乌鲁木齐县| 肃宁县| 顺义区| 鹿泉市| 丹巴县| 珲春市| 宁晋县| 乌鲁木齐县| 双桥区| 阳东县| 东兰县| 枝江市| 高青县| 宕昌县| 榆树市| 南投市|