有没有办法在Windows Mobile智能手机中禁用缩放? 例如HTC Titan。
我在我的头部html部分有这个:
<meta content='width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;' name='viewport' />但我仍然可以放大和缩小。
Is there some way of disabling zooming in Windows Mobile smartphones? For example HTC Titan.
I have this in my head html section:
<meta content='width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;' name='viewport' />But I am still able to zoom in and out.
最满意答案
<meta name="viewport" content="width=device-width" />您在问题中的设置是正确的,并且可以在我的诺基亚Lumia 900(Tango)和Dell Venue Pro(Mango)上测试的Windows Phone上运行。
如果您遇到动态视口设置问题,可以尝试直接设置分辨率。
<meta name="viewport" content="width=480" />参考: Windows团队博客:Windows Phone视口
<meta name="viewport" content="width=device-width" />The setting you have in your question is correct and works on Windows Phone as tested on both my Nokia Lumia 900 (Tango) and Dell Venue Pro (Mango).
If you're having problems with the dynamic viewport setting you can try setting the resolution directly.
<meta name="viewport" content="width=480" />Reference: Windows Team Blog: Windows Phone Viewport
更多推荐
Mobile,HTC,Titan,Windows,电脑培训,计算机培训,IT培训"/> <meta name="desc
发布评论