次の方法で共有


hasLayout property

Gets a value that indicates whether the object has layout.

 

Syntax

HRESULT value = object.get_hasLayout(* p);

Property values

Type: VARIANT_BOOL

VARIANT_FALSE (false)

Default. Object does not have layout.

VARIANT_TRUE (true)

Object has layout.

String format

|

CSS information

Applies To All elements
Media visual
Inherited no
Initial Value

Remarks

The following table shows Cascading Style Sheets (CSS) properties and corresponding values that, if set, cause an element to have a layout.

CSS property Value
IHTMLRuleStyle::display inline-block
IHTMLScreen::height any value
IHTMLStyle::styleFloat left or right
IHTMLRuleStyle2::position absolute
IHTMLScreen::width any value
IHTMLCurrentStyle2::writingMode tb-rl
IHTMLCurrentStyle2::zoom any value

 

By setting the IHTMLElement3::contentEditable property to true, you can cause an element to have a layout.

The following elements always have layout: body, img, HTMLInputElement, table and td.

As of Microsoft Internet Explorer 6, when the !DOCTYPE declaration specifies strict standards compliance, inline elements ignore the IHTMLScreen::width property and the IHTMLScreen::height property. By setting the IHTMLScreen::width property and the IHTMLScreen::height property, you cannot cause the element to have a layout.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll