您的位置:首页 > Web前端 > BootStrap

bootstrap-table 表头数据展示错位

2017-03-31 18:09 537 查看
打开bootstrap-table.js 找到 BootstrapTable.prototype.resetView方法,找到如下代码

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');
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: