cytasos给了一个很好的答案!如果你真的想只是UI块-B是滚动的,你可以这样来做:
第一比例尺的UI内容div来填充设备/屏幕高度:
function ScaleContentToDevice() {
scroll(0, 0);
var content = $.mobile.getScreenHeight() - $(".ui-header").outerHeight() - $(".ui-footer").outerHeight() - $(".ui-content").outerHeight() + $(".ui-content").height();
$(".ui-content").height(content);
}
$(document).on("pagecontainershow", function() {
ScaleContentToDevice();
});
$(window).on("resize orientationchange", function() {
ScaleContentToDevice();
});
下一组网格高度为100%和嵌段b的div至100%的高度和溢流在CSS:
.ui-grid-a {
height: 100%;
}
.ui-block-b {
height: 100%;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
}
DEMO
哇,谢谢sooo多!!!这正是我需要的! – 2014-11-14 14:59:58