bootstrap-table.js 中把右边距计算改一下
var scrollWidth = this.hasScrollBar && fixedBody.scrollHeight > fixedBody.clientHeight + this.$header.outerHeight() ? Utils.getScrollBarWidth() : 0;
去掉+ this.$header.outerHeight()
var scrollWidth = this.hasScrollBar && fixedBody.scrollHeight > fixedBody.clientHeight ? Utils.getScrollBarWidth() : 0;
博客内容探讨了如何修改bootstrap-table.js中计算右边距的代码,以适应表格滚动条的显示。通过移除外部高度的计算,避免了不必要的间距问题,提高了表格布局的准确性。
2101

被折叠的 条评论
为什么被折叠?



