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

scrollWidth Property

Internet Development Index

Retrieves the scrolling width of the object.

Syntax

HTMLN/A
Scripting[ iWidth = ] object.scrollWidth

Possible Values

iWidth Pointer to a nonnegative long integer that specifies the width, in pixels.

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

Remarks

The width is the distance between the left and right edges of the object's visible content.

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

Example

When the overflow property is set to auto, the content can exceed the dimensions of an element, and scroll bars appear. You can use the scrollWidth property to retrieve the width of the content within the element.

This example uses the scrollWidth property to compare the rendered width of a div element with the width of the content. The width of the element, as rendered on the page, is exposed through the offsetWidth property.

<SCRIPT>
function fnCheckScroll(){
var iScrollWidth = oDiv.scrollWidth;
var iOffsetWidth = oDiv.offsetWidth;
var iDifference = iScrollWidth - iOffsetWidth;
alert("Width: " + iOffsetWidth
+ "\nContent Width: " + iScrollWidth
+ "\nDifference: " + iDifference);
}
</SCRIPT>
:
<DIV ID=oDiv STYLE="overflow:scroll; height=200; width=250;
text-align:left">
:
</DIV>
<INPUT TYPE=button VALUE="Check scrollWidth"
onclick="fnCheckScroll()">
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.

Standards Information

There is no public standard that applies to this property.

Applies To

A, ADDRESS, APPLET, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, CUSTOM, DD, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FORM, HEAD, hn, HTML, I, 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, LEGEND, LI, LISTING, MENU, META, NOBR, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP

See Also

width, scrollHeight, scrollLeft, scrollTop
呼伦贝尔市| 彭阳县| 原平市| 团风县| 清水县| 嵩明县| 安西县| 拜城县| 珠海市| 泰顺县| 渭源县| 高邑县| 平安县| 高要市| 葫芦岛市| 开化县| 盐津县| 潢川县| 星子县| 永吉县| 商水县| 仙桃市| 专栏| 尤溪县| 循化| 大悟县| 专栏| 中山市| 剑河县| 丹凤县| 呼伦贝尔市| 定陶县| 咸宁市| 馆陶县| 扎兰屯市| 即墨市| 安泽县| 资阳市| 彭泽县| 轮台县| 江油市|