修复横向滚动条不显示问题

This commit is contained in:
leijun
2018-09-25 16:41:45 +08:00
parent 97de2d21db
commit 80795c9b8a
2 changed files with 17 additions and 3 deletions

View File

@@ -306,7 +306,14 @@ function customColumnClick(){
$('#total').html(trtotal); $('#total').html(trtotal);
} }
} }
window.onload=function (){
setTimeout(function (){
var height=document.documentElement.clientHeight;
if($('.table-responsive')){
$('.table-responsive').css({'height':height-166+'px'});
}
},510);
}
window.onresize=function (){ window.onresize=function (){
var height=document.documentElement.clientHeight; var height=document.documentElement.clientHeight;
if($('.table-responsive')){ if($('.table-responsive')){

View File

@@ -530,7 +530,6 @@ $(function(){
} }
}); });
}); });
window.onload=function(){ window.onload=function(){
$("span[id^=open]").click(function(){ $("span[id^=open]").click(function(){
@@ -1812,7 +1811,7 @@ var initCommIpVal=function(){
} }
} }
window.onresize=function (){ function heightDiv(){
var hei=document.documentElement.clientHeight; var hei=document.documentElement.clientHeight;
hei=hei-71; hei=hei-71;
var rowheigth=0; var rowheigth=0;
@@ -1824,3 +1823,11 @@ window.onresize=function (){
$('.table-responsive').css({'height':hei+'px'}); $('.table-responsive').css({'height':hei+'px'});
} }
} }
window.onload=function (){
setTimeout(function (){
heightDiv();
},500);
}
window.onresize=heightDiv;