我有一个使用jQuery Mobile创建的网站。我想要禁用缩放功能,或者禁止用户使用缩放缩放或同时用2根手指轻敲。防止在网站中使用触摸屏进行缩放(IE 11,Win 10)
我正在寻找答案,但我找不到一个有效的答案。
我尝试使用meta标签:
<meta name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>
也试过:
body { -ms-content-zooming: none },
html { -ms-content-zooming: none },
.ui-page { -ms-content-zooming: none }
这些解决方案的工作无。
校验类似位http://stackoverflow.com/questions/6397748/whats-the-point-of-meta-viewport-user-scalable-no-in-the -google-maps-api – kplshrm7