简体   繁体   English

Android webapp旋转错误

[英]Android webapp rotation bug

Android 2.3.4 Tablet: HTC Flyer Application: Webapp, HTML, Jquery Mobile, CSS Android 2.3.4 平板电脑:HTC 传单 应用程序:Webapp、HTML、Jquery 手机、Z2C56C3605842D820DDBB17

Hello, I've created an webapp which features a grill with different applications (the webapp its simialr to an Android Market) but features only my applications.您好,我创建了一个 Web 应用程序,其中包含具有不同应用程序的烧烤(该 Web 应用程序类似于 Android 市场),但仅包含我的应用程序。

After rotating the tablet a few times, the whole page zooms about 5px per image.数次旋转数位板后,整个页面每张图片缩放约 5px。 This includes the navigation bar, logo, applications logos, menu, everything.这包括导航栏、标识、应用程序标识、菜单等一切。 Basically the whole page gets zoomed in. Therefore, all my images are squeezed in due to CSS.基本上整个页面都被放大了。因此,由于 CSS,我的所有图像都被挤压了。

What causes this?这是什么原因造成的?

Thank you in advance.先感谢您。

Some devices, such as the iPad do this by default.某些设备(例如 iPad)默认执行此操作。 You should first check to see if this zoom happens on other sites.您应该首先检查此缩放是否发生在其他站点上。 If not, then check CSS media queries (if you have any), or make sure you aren't accidentally zooming with your fingers.如果没有,请检查 CSS 媒体查询(如果有),或者确保您没有意外地用手指缩放。

This meta tag will come in handy if you don't want the user scrolling btw:如果您不希望用户滚动 btw,此元标记将派上用场:

 <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM