if (this.options.showHeader && this.options.height) { this.$tableHeader.show(); //註釋掉下面兩行 取消表頭初始化解決表頭和內容不對齊問題 //this.resetHeader(); //padding += this.$header.outerHeight(); }
事情還沒完
這樣設置之後 異步加載的數據會展示的更混亂 反正我是遇到了。
$table.bootstrapTable('resetWidth');也不行
我用了
$(".th-inner:contains('時間')").css('width','80px');
$(".th-inner:has('h')").css('width','100px');