界面滚动条优化

This commit is contained in:
leijun
2018-09-13 20:10:28 +08:00
parent d62799a0c1
commit c07897f3e4
5 changed files with 56 additions and 19 deletions

View File

@@ -22351,8 +22351,6 @@ Color library demo
background-color: #fff;
border-bottom: 1px solid #ddd;
text-align: center;
margin-top: -1px;

View File

@@ -2225,8 +2225,12 @@ table th[class*="col-"] {
background-color: #f8cace; }
.table-responsive {
/* overflow-x: auto; */
min-height: 0.01%; }
overflow-x: auto;
min-height: 0.01%;
position: fixed;
right: 14px;
left: 14px;
z-index: 1030; }
@media screen and (max-width: 767px) {
.table-responsive {
width: 100%;

View File

@@ -1,4 +1,9 @@
$(function(){
var height=document.documentElement.clientHeight;
if($('.table-responsive')){
$('.table-responsive').css({'height':height-105+'px'});
}
//扩展jquery增加全局函数
$.ipcommon=function(){
return {};
@@ -1823,4 +1828,11 @@ var initCommIpVal=function(){
}else{
$.ipcommon.protocol=[];
}
}
window.onresize=function (){
var height=document.documentElement.clientHeight;
if($('.table-responsive')){
$('.table-responsive').css({'height':height-105+'px'});
}
}