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

right Property

Internet Development Index

Sets or retrieves the right coordinate of the rectangle surrounding the object content.

Syntax

TextRectangle.right [ = iCoord ]

Possible Values

iCoordInteger that specifies or receives the right coordinate of the rectangle, in pixels.

The property is read/write. The property has no default value.

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

To access the right coordinate of the second text rectangle of a TextRange object, use this syntax:

oRct = oTextRange.getClientRects();
oRct[1].right;

Note that the collection index starts at 0, so the second item index is 1.

To access the right coordinate of the bounding rectangle of an element object, use this syntax:

oBndRct = oElement.getBoundingClientRect();
oBndRct.right;

Example

This example uses the getBoundingClientRect method to retrieve the coordinates of the bounds of the text rectangles within the element.

<SCRIPT>
function getCoords(oObject) {
oBndRct=oObject.getBoundingClientRect();
alert("Bounding rectangle = \nUpper left coordinates: "
+ oBndRct.left + " " + oBndRct.top +
"\nLower right coordinates: "
+ oBndRct.right + " " + oBndRct.bottom);
}
</SCRIPT>
</HEAD>
<BODY>
<P ID=oPara onclick="getCoords(this)">
This feature requires Microsoft® Internet Explorer 5 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 2 (CSS2) Non-Microsoft link.

Applies To

TextRectangle

See Also

TextRectangle Collection, TextRectangle Object, bottom, left, top
霞浦县| 河津市| 凌海市| 麻江县| 黄龙县| 额尔古纳市| 惠来县| 静海县| 镇雄县| 山阳县| 富民县| 开江县| 民权县| 安溪县| 温宿县| 曲阳县| 高尔夫| 贺州市| 五家渠市| 长顺县| 正阳县| 呼图壁县| 广水市| 垣曲县| 海盐县| 城步| 扎兰屯市| 大余县| 茂名市| 南安市| 南靖县| 灵武市| 浠水县| 东兰县| 苍溪县| 怀来县| 保定市| 盘锦市| 茂名市| 怀化市| 德州市|