JS:
var screen_h = document.documentElement.clientHeight;
var scroll_h =screen_h-100; //减去推送按钮所占固定高度
//是否显示所有滚动条
function scroll(){
var heightList=$("tbody").height();
if(heightList>scroll_h){
$("tbody").css("overflow-y","scroll");
$("tbody").height(scroll_h);
}else{
$("tbody").css("overflow-y","visible");
}
}