【发布时间】: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
同样的问题成功解决here,但使用 jquerymobile
这里是工作脚本,没有 jQmobile
http://jsfiddle.net/ca11111/tCdPX/12/
现在只需添加 jQmobile 脚本和链接头标签:
http://jsfiddle.net/ca11111/tCdPX/13/
没用
【问题讨论】:
标签: css jquery-mobile footer
jQuery mobile 添加了一个带有ui-page 类的页面包装器。它也需要css定义height: 100%;。
将 ui-page 类添加到 html 和 body 的 css 定义中:
html, body, .ui-page {
height: 100%;
}
【讨论】:
我的最佳解决方案:
$(document).ready(function(){
$("html, body, .ui-page").height($(window).height());
}
希望这会有所帮助。
【讨论】: