layui切换tab后返回laythis表格样式变形宽度改变缩在一起
最好设置百分比,适应比较好
/* 表格样式缩在一起设置固定宽 */
thead th:nth-child(1),tbody td:nth-child(1){
width: 10px !important;
}
thead th:nth-child(1)>div,tbody td:nth-child(1)>div{
width: 100% !important;
}
thead th:nth-child(2),tbody td:nth-child(2){
width: 20% !important;
}
thead th:nth-child(2)>div,tbody td:nth-child(2)>div{
width: 100% !important;
}
thead th:nth-child(3),tbody td:nth-child(3){
width: 30% !important;
}
thead th:nth-child(3)>div,tbody td:nth-child(3)>div{
width: 100% !important;
}
thead th:nth-child(4),tbody td:nth-child(4){
width: 10% !important;
}
thead th:nth-child(4)>div,tbody td:nth-child(4)>div{
width: 100% !important;
}
thead th:nth-child(5),tbody td:nth-child(5){
width