0

同样的问题在这里成功解决,但使用 jquerymobile

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

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

不工作

4

2 回答 2

1

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

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

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

另请参阅您更新的示例

于 2012-06-03T10:01:11.263 回答
0

我最好的解决方案:

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

希望这可以帮助。

于 2012-11-20T14:45:01.180 回答