Property of css/cssom/CSSStyleDeclaration/CSSStyleDeclarationcss/cssom/CSSStyleDeclaration/CSSStyleDeclaration
Syntaxvar result = declaration.hasLayout;
declaration.hasLayout = value;
Return Value
Returns an object of type StringString
ExamplesThe 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>
Notes Remarks
The following table shows Cascading Style Sheets (CSS) properties and corresponding values that, if set, cause an element to have a layout. {
SyntaxhasLayout: VARIANT_FALSE | VARIANT_FALSE
{
See also Related articles CSSOMhasLayout
Microsoft Developer Network: [Windows Internet Explorer API reference Article]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4