msContentZooming property
Specifies whether zooming is enabled.
This property is read/write.
![]() |
Syntax
HRESULT put_msContentZooming( [in] DOMString val ); HRESULT get_msContentZooming( [out] DOMString **ptr );
Property values
Type: DOMString
String format
none | zoom
CSS information
| Applies To | non-replaced block-level elements and non-replaced inline-block elements |
|---|---|
| Media | interactive |
| Inherited | no |
| Initial Value | zoom for the top level element, none for all other elements |
Remarks
This property has no effect unless overflow is permitted on both the x- and y-axes.
By default, zoom-enabled elements can be zoomed by the user via pinch-zoom. The top-level element can also be zoomed via double-tap when it is zoom-enabled. For information about controlling the touch inputs that result in a zoom, see IHTMLCSSStyleDeclaration2::touchAction.
Starting with Windows 8.1, this property is also supported for touchpad interaction.
This property requires Windows 8 or later.
Requirements
|
IDL |
|
|---|
See also
- Windows apps using JavaScript Samples: HTML scrolling, panning and zooming sample
- msContentZoomFactor
- Internet Explorer Samples: Scrolling, panning, and zooming with touch input
- msContentZoomFactor
Show:
