jQuery Mobile高度问题的iPhone网络应用程序,假设页面高度为480而不是460 [英] jQuery Mobile height issue for iPhone web app, assumes page height of 480 instead of 460

查看:143
本文介绍了jQuery Mobile高度问题的iPhone网络应用程序,假设页面高度为480而不是460的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

jQuery Mobile在初始化时计算页面高度,但是由于我们在应用程序中启用状态栏,因此JQM假设我们有480像素可用,而不是460像素。

jQuery Mobile seems to calculate the page height upon initializing, but since we enable the status bar in our app, JQM assumes we have 480 px available instead of 460 px.

我们正在为iPhones制作移动网络应用程序。

We're building mobile web apps for iPhones.

我们使用的是JQM 1.1.1和PhoneGap 2.0。

We're using JQM 1.1.1 and PhoneGap 2.0.

任何想法如何覆盖JQM设置?我们尝试手动将页面高度设置为460 px(在JQM定义页面高度后),但这不起作用。

Any idea how to override the JQM setting? We tried manually setting the page height to 460 px ourselves (after JQM defines the page height), but this doesn't work.

推荐答案

p>原来这不是一个JQM问题。我们在我们的视口元标记中有height = device-height。删除这个问题解决了这个问题。

Turns out it wasn't a JQM issue. We had 'height=device-height' in our viewport meta tag. Removing this solved the problem.

这篇关于jQuery Mobile高度问题的iPhone网络应用程序,假设页面高度为480而不是460的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆