bootstrapTable遇到的问题

问题一:
bootstraptable需要彻底重新加载,发现即使url等参数更新过来仍旧无效。需要调用

$("#resource_table").bootstrapTable('destroy');

方法,将原表格销毁,再重新init()初始化一次即可。

问题二:
表头固定,表格的内容超过固定高度出现滚动条进行滚动,下面是核心代码

        table tbody {
            display: block;
            height: 350px;
            overflow-y: scroll;
        }

        table thead, tbody tr {
            display: table;
            width: 100%;
            table-layout: fixed;
        }

        table thead {
            width: calc(100% - 17px)
        }

你可能感兴趣的:(前段,bootstrap,bootstrapTable,summary)