HBCMS更多的中文手册参考:

boundingTop参数属性

DHTML文档教程

Retrieves the distance between the top edge of the rectangle that bounds the textrange object and the top side of the object that contains the textrange.

dhtml语法

[ itop = ] textrange.boundingtop

dhtml可能的值

iTopInteger that receives the top coordinate of the bounding rectangle, in pixels.

The property is read-only. The property has no default value.

DHTML代码范例

This example retrieves the value of the boundingTop property for the given text area.

<SCRIPT>
function boundDim(oObject)
{
var collTextarea = document.all.tags("TEXTAREA");
if (collTextarea != null) {
var oTextRange = oObject.createTextRange();
if (oTextRange != null) {
alert("The bounding top is \n" +
oTextRange.boundingTop);
}
}
}
</SCRIPT>
</HEAD>
<BODY>
<TEXTAREA COLS=100 ROWS=2 ID=oTextarea
onclick="boundDim(this)"> . . . </TEXTAREA>
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.

是否符合公共标准

There is no public standard that applies to this property.

Applies To

TextRange

更多语法参考

boundingheight, boundingleft, boundingWidth