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

right Attribute | right Property

Internet Development Index

Sets or retrieves the position of the object relative to the right edge of the next positioned object in the document hierarchy.

Syntax

HTML { right : sPosition }
Scriptingobject.style.right [ = sPosition ]

Possible Values

sPositionVariant that specifies or receives one of the following values:
autoDefault. Position is determined by the regular HTML layout of the page.
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 (%). The 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 auto. The Cascading Style Sheets (CSS) attribute is not 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

Only use the right attribute when the position attribute is set; otherwise, the value of the right attribute is ignored.

You cannot use the right property in script to calculate the position of the object in the document, because the value of the right property is a string. Instead, use the pixelRight property or the posRight property.

For more information about how to access the dimension and location of objects on the page through the DHTML Object Model, see Measuring Element Dimension and Location.

Example

This example uses the right attribute to set a div object 50 pixels from the right of the client area.

<DIV STYLE = "position:absolute; right:50px">
. . .
</DIV>

Standards Information

This property is defined in Cascading Style Sheets (CSS), Level 2 (CSS2) Non-Microsoft link.

Applies To

A, ADDRESS, APPLET, B, BIG, BLOCKQUOTE, BUTTON, CENTER, CITE, CODE, currentStyle, DD, DFN, DIR, DIV, DL, FIELDSET, FONT, FORM, hn, HR, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL, LAYOUTRECT, LEGEND, LI, LISTING, MARQUEE, MENU, OBJECT, OL, P, PRE, runtimeStyle, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE, TEXTAREA, TT, U, UL, VAR, XMP
方城县| 上蔡县| 永安市| 香格里拉县| 肃北| 乌兰察布市| 昌黎县| 来凤县| 鄯善县| 江门市| 界首市| 枝江市| 沁水县| 青州市| 都江堰市| 田东县| 黄骅市| 广丰县| 绥棱县| 灵丘县| 大足县| 扬中市| 乾安县| 徐水县| 汕头市| 西丰县| 潮州市| 阿勒泰市| 葵青区| 万宁市| 巴彦淖尔市| 庆阳市| 繁昌县| 资溪县| 龙口市| 泉州市| 苍山县| 高州市| 日土县| 甘洛县| 仙桃市|