bootstrap-table 表格的表头和内容对不齐问题解决方法

打开bootstrap-table.js 找到 BootstrapTable.prototype.resetView方法,找到如下代码

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

清除缓存,刷新即可

posted on 2017-06-23 11:26  阿兴的平凡世界  阅读(377)  评论(1)    收藏  举报

导航