开发者

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

开发者 https://www.devze.com 2023-01-09 20:39 出处:网络
Here are my METAs <META name=\"viewport\" content=\"width=320; initial-scale=1.0; maximum-scale=开发者_高级运维1.0; user-scalable=no;\" />

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?


For disabling scaling try to use this meta tag:

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

精彩评论

暂无评论...
验证码 换一张
取 消