2012-04-14 67 views
0

是我页脚在固定的位置,的jQuery Mobile在移动网站固定页脚

但是当我点击在iPhone 4中的窗体上(输入字段)每一次,我的iPhone键盘GET打开,我的页脚是在这时间不固定。当关闭键盘时它很好。

只有当我的键盘是开放的页脚是滚动与内容, 我不知道为什么?

这里是我的CSS代码

.bgfooter{ 
left: 0; 
position: fixed!important; 
right: 0; 
top: 0!important; 
width: 100%; 
z-index: -1!important; 
bottom: 0; 

background:url('../images/background.png') no-repeat 0 0 !important; 

}

我的HTML代码

... 
<div data-role="content">....</div>    
<div class="bgfooter" data-position="fixed" data-role="footer" >.... </div> 

回答