HBCMS更多的中文手册参考:

clipLeft参数属性

DHTML文档教程

Retrieves the left coordinate of the object clipping region.

dhtml语法

[ sLeft = ] currentStyle.clipLeft

DHTML可能的值

sLeftVariant that receives one of the following values.
autoLeft side of object is fully exposed—that is, the left side is not clipped.
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.

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

DHTML代码范例

This example demonstrates how to read the clipLeft property from the currentstyle object of an image.

<SCRIPT>
function setClip(sOptionValue) {
oImage.style.clip="rect(0,100,100,"+sOptionValue+")";
if (oImage.currentStyle.clipLeft == "60px") {
alert("The image has been clipped to 60px.");
}
:
}
</SCRIPT>
:
<IMG ID=oImage SRC="../common/sphere.jpg">
:
Pick an amount to clip the left:
// the option value is sent as an argument:
<SELECT onchange="setClip(value)">
<OPTION VALUE=100>reset </OPTION>
<OPTION VALUE=40>40px </OPTION>
<OPTION VALUE=50>50px </OPTION>
<OPTION VALUE=60>60px </OPTION>
</SELECT>
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.

是否符合公共标准

There is no public standard that applies to this property.

Applies To

currentStyle

更多语法参考

clip, clipbottom, clipright, clipTop