jQuery Mobile Cordova(Phonegap)在每个页面的底部留下空白 [英] jQuery Mobile Cordova (Phonegap) leaving white space at bottom of every page
问题描述
对于我的每一个jQm页面,每个页面的底部似乎有一些空白,它添加一个滚动行为没有理由。我附上了一张屏幕截图。
For each of my jQm pages, there seems to be some blank space at the bottom of each page, and it's adding a scroll behavior for no reason. I've attached a screenshot.
这种不必要的滚动行为正在为我打乱很多东西。
This unnecessary scroll behavior is messing a lot of stuff up for me.
我检查了firebug的页面,看来jQm正在添加min-height:213px;到页面。删除它在firebug 似乎解决这个问题,但我不知道从哪里找到问题的根源。
I checked the page in firebug, and it seems jQm is adding "min-height: 213px;" to the page. Deleting it in firebug seems to fix the issue, but I have no idea where to find the source of the problem.
我不能真的附上代码示例在这里,但它是一个干净的安装jQm。我缺少一些东西,一个简单的事情?
I can't really attach the code example here, but it is a clean install of jQm. Am I missing something, a simple thing?
我尝试了一些其他类似的问题在这里没有效果。大多数说添加padding:0 margin:0,等等,但我认为这是一个jQm问题,因为min-height代码是在html的样式元素。
I tried following some other similar questions on here to no avail. Most say to add padding:0 margin:0, etc. but I think this is a jQm issue as the min-height code was on the style element of the html.
您可以看到白色框,显然没有内容强制滚动
You can see the white box, clearly there is no content forcing a scroll
推荐答案
视口元标记,它为我工作。
Try dropping the viewport meta tag, it worked for me.
这篇关于jQuery Mobile Cordova(Phonegap)在每个页面的底部留下空白的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!