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

hasLayout Property

Internet Development Index

Retrieves a value that indicates whether the object has layout.

Syntax

HTMLN/A
Scripting[ sHasLayout = ] object.currentStyle.hasLayout

Possible Values

sHasLayoutBoolean that receives one of the following values.
falseDefault. Object does not have layout.
trueObject has layout.

The property is read-only. The property has a default value of false. The Microsoft Cascading Style Sheets (CSS) extension is not inherited.

Remarks

The following table shows Cascading Style Sheets (CSS) properties and corresponding values that, if set, cause an element to have layout.
CSS propertyValue
displayinline-block
heightany value
floatleft or right
positionabsolute
widthany value
writing-modetb-rl
zoomany value

As of Microsoft® Internet Explorer 6, when the !DOCTYPE declaration specifies strict standards compliance, inline elements will ignore the width and height properties, and setting the width and height properties will not cause the element to have layout.

Setting the contentEditable property to true will cause an element to have layout.

BODY, IMG, INPUT, TABLE and TD elements always have layout.

Example

The following example shows how to use the hasLayout property to determine whether an object has layout.

<DIV ID="oWidthSet" STYLE="width:100%">
DIV element A has its width set to 100%.</DIV>
<DIV ID="oNotSet">DIV element B is not positioned,
and neither its height nor width is set.</DIV>
<P>Which DIV element has layout?</P>
<BUTTON onclick="alert(oWidthSet.currentStyle.hasLayout)">
DIV Element A</BUTTON>
<BUTTON onclick="alert(oNotSet.currentStyle.hasLayout)">
DIV Element B</BUTTON>
This feature requires Microsoft® Internet Explorer 5.5 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, ACRONYM, ADDRESS, APPLET, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, currentStyle, CUSTOM, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, hn, I, IMG, INPUT type=hidden, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, NOBR, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TD, TEXTAREA, TH, TT, U, UL, VAR, XMP
东乌珠穆沁旗| 阿鲁科尔沁旗| 专栏| 孙吴县| 三台县| 大庆市| 古蔺县| 竹溪县| 巧家县| 张家川| 同心县| 盐山县| 靖江市| 英山县| 大理市| 凉山| 新竹县| 泰兴市| 郓城县| 琼结县| 鄂尔多斯市| 千阳县| 永和县| 宁夏| 深泽县| 驻马店市| 遂溪县| 政和县| 余庆县| 远安县| 荔波县| 大城县| 礼泉县| 彰化县| 嘉义市| 苏尼特左旗| 海林市| 乐平市| 志丹县| 陕西省| 宜兴市|