简体   繁体   中英

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

Here are my METAs

<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)

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. Thoughts?

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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