HTML CSS Reference/CSS Attributes and Javascript Style Properties/hasLayout
Содержание
"hasLayout" Example
<source lang="html4strict">
<html> <body>
div segment
div element has no layout or positioning set.
</body> </html>
</source>
"hasLayout" is applied to
<source lang="html4strict">
+----------------+--------------------------------------------------------------+ | Applied_To |<a> <address> | | | |
| |<body> || |<button>
| | | | | |
| |<dir><col> | | |<colgroup> currentStyle | | |<custom>
| | |defaults | | | |
- | | | <fieldset> | | |<form> <hn> | | |<html> | | |<img> <input type="button"> | | |<input type="checkbox"> <input type="file"> | | |<inputtype="image"> <input type="password"> | | |<input type="radio"> <input type="reset"> | | |<input type="submit"> <input type="text"> | | |<isindex> | | |<label> <legend> | | |
- <listing> | | |<marquee> <menu> | | |
| | |
runtimeStyle | | || | |<select> | | || | | style | | | | | |<tbody> | | |
<textarea> | | |<tfoot> | | |<thead> | | | | | | | | |<xmp> | +----------------+--------------------------------------------------------------+ </source>
"hasLayout" Possible Values
<source lang="html4strict"> Possible Values truefalse the default. The following style properties can cause an element to have layout: display (values: inline or block),height, float (values: left or right), position (value: absolute),width,writing-mode (value: tb-rl)zoom.
</source>
"hasLayout" Syntax and Note
<source lang="html4strict"> Note: Read-only JavaScript-only style property. Whether the element has a layout. Syntax:
elementID.currentStyle.hasLayout = "value"
</source>