Disable pinch to zoom in IE10

怎甘沉沦 提交于 2019-12-06 19:10:38

问题


In IE10 touch mode I wish to make only a certain part of the page zoomable. 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.

However I can still zoom. Did I miss something?


回答1:


Found the solution: -ms-content-zooming: none | zoom




回答2:


For me this CSS code work

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, I.E 10




回答3:


Try to add this in your Head area:

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


来源:https://stackoverflow.com/questions/15181601/disable-pinch-to-zoom-in-ie10

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!