【发布时间】:2012-04-26 16:59:34
【问题描述】:
在移动网站中,我的页脚处于固定位置,
但是每次当我在 Iphone 4 中单击表单(输入字段)时,我的 Iphone 键盘都会打开,并且我的页脚在这段时间内没有固定。 关闭键盘时一切正常。
只有当我的键盘打开时,页脚才能随内容滚动, 不知道为什么?
这是我的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>
【问题讨论】:
标签: jquery-mobile footer css-position