JQueryMobile HTC的Andr​​oid双指缩放缩放、HTC、JQueryMobile、oid

2023-09-08 09:10:47 作者:离心率

我有一个网站,其中JQueryMobile为iPhone,但与Android HTC看起来变焦时非常奇怪的正常工作。同样的事情发生在任何JQueryMobile网站的演示页面,几乎一半的屏幕变为空白彻底打破该网站。

I have one website with JQueryMobile which works fine for iPhone but with Android HTC looks really weird when zooming. Same thing happens in any of the demo pages of JQueryMobile site, almost half of the screen becomes blank breaking completely the site.

有没有解决这个或至少禁用捏缩放为Android HTC浏览器的方法吗?

Is there any way of solving this or at least disable pinch zooming for Android HTC Browsers?

推荐答案

您所面临的问题很可能是由HTC非标准Android浏览器造成的。你不能使用视meta标签,以prevent捏缩放。另外,变焦使布局重新计算(页面尺寸改变),我认为是什么原因造成的问题。不幸的是它似乎并不像有在这个时候这个问题的解决方案,但它仅影响的HTC手机。

The problem you are facing is likely caused by the HTC non-standard android browser. You cannot use the viewport meta tag to prevent pinch zooming. Also the zooming causes the layout to be recalculated (page dimensions are changed) which I assume is what is causing your issues. Unfortunately it doesn't seem like there is a solution for this problem at this time, but it only affects HTC phones.

 
精彩推荐
图片推荐