在移动网络上禁用双指缩放 [英] Disable Pinch Zoom on Mobile Web
本文介绍了在移动网络上禁用双指缩放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我要停用移动设备上的捏合和缩放。
I want to disable Pinch and Zoom on Mobile devices.
我应该将哪些配置添加到视口?
What configuration should I add to the viewport ?
链接: http://play.mink7.com/n/dawn/
推荐答案
编辑:由于这种情况不断被评论,我们都知道我们不应该这样做。问题是如何,我不这样做,应。
Because this keeps getting commented on, we all know that we shouldn't do this. The question was how do I do it, not should I do it.
将此内容添加到您的移动设备设备。然后按百分比设置宽度,就可以了:
Add this into your for mobile devices. Then do your widths in percentages and you'll be fine:
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
为不能使用视口的设备添加此项:
Add this in for devices that can't use viewport too:
<meta name="HandheldFriendly" content="true" />
这篇关于在移动网络上禁用双指缩放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文