【问题标题】:CSS footer at the bottom with jQuerymobilejQuerymobile 底部的 CSS 页脚
【发布时间】:2012-06-07 19:37:28
【问题描述】:

同样的问题成功解决here,但使用 jquerymobile

这里是工作脚本,没有 jQmobile
http://jsfiddle.net/ca11111/tCdPX/12/

现在只需添加 jQmobile 脚本和链接头标签:
http://jsfiddle.net/ca11111/tCdPX/13/

没用

【问题讨论】:

    标签: css jquery-mobile footer


    【解决方案1】:

    jQuery mobile 添加了一个带有ui-page 类的页面包装器。它也需要css定义height: 100%;

    ui-page 类添加到 html 和 body 的 css 定义中:

    html, body, .ui-page {
        height: 100%;
    }
    

    另见your updated example

    【讨论】:

      【解决方案2】:

      我的最佳解决方案:

      $(document).ready(function(){
          $("html, body, .ui-page").height($(window).height());
      }
      

      希望这会有所帮助。

      【讨论】:

        猜你喜欢
        • 2013-01-04
        • 2013-09-13
        • 2016-05-01
        • 2013-12-08
        • 2013-08-05
        • 2016-12-01
        • 2017-10-03
        • 2012-05-07
        • 1970-01-01
        相关资源
        最近更新 更多