bootstrap-table 表头和内容对不齐

问题:

bootstrap-table.js 找到 BootstrapTable.prototype.resetView

if (this.options.showHeader && this.options.height) {
     this.$tableHeader.show();
     //注释掉下面两行 取消表头初始化解决表头和内容不对齐问题
     //this.resetHeader();
     //padding += this.$header.outerHeight();
}

即可解决问题!

原文地址:https://www.cnblogs.com/hz-cww/p/6294909.html