简体   繁体   English

禁用捏合以放大IE10

[英]Disable pinch to zoom in IE10

In IE10 touch mode I wish to make only a certain part of the page zoomable. 在IE10触摸模式下,我希望只对页面的某个部分进行缩放。 The rest should not be. 其余的不应该。

I found this: http://msdn.microsoft.com/en-US/library/ie/hh772044.aspx and tried to set -ms-touch-action: none to my body and html tags. 我发现了这个: http//msdn.microsoft.com/en-US/library/ie/hh772044.aspx并尝试将-ms-touch-action: none为我的bodyhtml标签。

However I can still zoom. 但是我仍然可以放大。 Did I miss something? 我错过了什么?

Found the solution: -ms-content-zooming: none | zoom 找到解决方案: -ms-content-zooming: none | zoom -ms-content-zooming: none | zoom

For me this CSS code work 对我来说这个CSS代码工作

html {

      -ms-content-zooming: none;
      -ms-touch-action: pan-x pan-y;

}

I am using this code for disabling pinch and double tap zoom on windows tablet, IE 10 我正在使用此代码禁用Windows平板电脑,IE 10上的捏合和双击缩放

尝试在Head区域添加此项:

<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM