【问题标题】:jQuery Mobile fixed footerjQuery Mobile 固定页脚
【发布时间】: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


    【解决方案1】:

    这里有一个错误:

    https://github.com/jquery/jquery-mobile/issues/3072

    我已重新编码我的应用程序以避免 jQueryMobile 中的固定页脚。当 1.1 最终版发布时,情况可能会发生变化。

    【讨论】:

      猜你喜欢
      • 2011-10-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-05-21
      • 2023-04-09
      • 2012-05-01
      • 2013-01-23
      相关资源
      最近更新 更多