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

top Property

Internet Development Index

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

Syntax

TextRectangle.top [ = iCoord ]

Possible Values

iCoordInteger that specifies or receives the top 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

Use this syntax to access the top coordinate of the second text rectangle of a TextRange object:

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

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

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

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

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)">

Standards Information

There is no public standard that applies to this property.

Applies To

TextRectangle

See Also

bottom, left, right, TextRectangle Collection, TextRectangle Object
东至县| 濮阳县| 河西区| 宣恩县| 航空| 临夏市| 台中市| 友谊县| 石阡县| 留坝县| 柳河县| 兴安盟| 南昌县| 金平| 呼和浩特市| 漳州市| 玉龙| 徐水县| 兴安盟| 苍溪县| 西华县| 汝南县| 上栗县| 共和县| 昌都县| 永城市| 永嘉县| 锡林浩特市| 汤原县| 称多县| 徐汇区| 陆丰市| 磐石市| 都兰县| 浦东新区| 黎城县| 宜章县| 会昌县| 武胜县| 郯城县| 石河子市|