|
@@ -227,11 +227,12 @@
|
|
if (count > 3 && (headerTop - $(window).scrollTop()) < 100) { //超过了
|
|
if (count > 3 && (headerTop - $(window).scrollTop()) < 100) { //超过了
|
|
$('#list-thead').addClass('table-header-fixed'); //添加样式,固定住表头
|
|
$('#list-thead').addClass('table-header-fixed'); //添加样式,固定住表头
|
|
|
|
|
|
|
|
+ /*
|
|
$('#list-thead th').each(function (k, v) {
|
|
$('#list-thead th').each(function (k, v) {
|
|
var width = $('#list-tbody td').eq(k).width() + 0.9;
|
|
var width = $('#list-tbody td').eq(k).width() + 0.9;
|
|
//$(v).width(width + 1);
|
|
//$(v).width(width + 1);
|
|
$(v).css({'min-width': width});
|
|
$(v).css({'min-width': width});
|
|
- });
|
|
|
|
|
|
+ });*/
|
|
} else { //没超过
|
|
} else { //没超过
|
|
$('#list-thead').removeClass('table-header-fixed'); //移除样式
|
|
$('#list-thead').removeClass('table-header-fixed'); //移除样式
|
|
}
|
|
}
|