同样问题成功解决here但是使用 jquerymobile
这是工作脚本,没有 jQmobile
http://jsfiddle.net/ca11111/tCdPX/12/
现在只需添加 jQmobile 脚本和链接头标签:
http://jsfiddle.net/ca11111/tCdPX/13/
没用
最佳答案
jQuery Mobile 添加了一个带有类 ui-page
的页面包装器。它也需要 css 定义 height: 100%;
。
将 ui-page
类添加到 html 和 body 的 css 定义中:
html, body, .ui-page {
height: 100%;
}
另见 your updated example .
关于底部的 CSS 页脚与 jQuerymobile,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10869302/