如何在Windows Mobile中禁用缩放?(How to disable zooming in Windows Mobile?)

编程入门 行业动态 更新时间:2024-10-22 21:37:50
如何在Windows Mobile中禁用缩放?(How to disable zooming in Windows Mobile?)

有没有办法在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

本文发布于:2023-08-03 14:00:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1390732.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:缩放   如何在   Windows   Mobile   disable

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!