android 和 webos 没有内容缩放吗?
我目前正在构建一个针对移动设备优化的网站。
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>
我有一个动态 JavaScript 网格,我不想在移动设备上缩放。
上面的行在 iphone 上完美运行,但我认为它不适用于 android 或 webos。如何为这些移动设备设置无比例模式。所以不存在捏和捏的情况。缩放并且设备宽度是 100% 浏览器宽度?
I am currently building a website optimized for mobile devices.
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>
I have a dynamic javascript grid and i want no scaling on mobile devices.
The line above works perfectly on the iphone, however I think it does not work on android or webos. How can I set a NO-SCALE mode for those mobile devices as well. So there is no pinch & zoom and the device-width is the 100% browser-width?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据 http://developer.android.com/guide/webapps/targeting.html #Metadata,“用户可扩展”属性需要设置为“否”,而不是 0。因此:
编辑:页面底部附近的更多信息 Safari 参考库 - 支持的元标记:
According to http://developer.android.com/guide/webapps/targeting.html#Metadata, the "user-scalable" property needs to be set to "no", not 0. So:
EDIT: A bit more info near the bottom of the page at Safari Reference Library - Supported Meta Tags: