简体   繁体   English

移动网络应用| 过度放大旋转+隐藏网址栏

[英]Mobile Web App | Over Zoomed on Rotation + Hiding URL Bar

Here are my METAs 这是我的META

<META name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=no;" />
<META name="HandheldFriendly" content="true" />

and this is my JavaSCript supposedly hiding the URL bar (which is quirky) 这是我的JavaSCript应该隐藏URL栏(古怪)

window.onload = function () {
  setTimeout(function(){window.scrollTo(0, 1);}, 100);
  insert();
}
  1. The text when turned to horizontal position is extremely large, and is perfect in the vertical version. 转到水平位置时,文本非常大,在垂直版本中是完美的。 Any ideas as to why? 有什么想法吗?
  2. On some pages the URL bar is hidden entirely, on others it's only partially hidden. 在某些页面上,URL栏被完全隐藏,在其他页面上,它仅被部分隐藏。 Thoughts? 有什么想法吗?

要禁用缩放,请尝试使用以下元标记:

<META name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; minimum-scale=1.0; user-scalable=no;"/>

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

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