问题:在el-table设置了max-height固定表头并且自适应高度为什么原本设置的自适应失效了??求问各位
页面自适应使用的:postcss-px2rem
// 引入等比适配插件
const px2rem = require('postcss-px2rem')
// 配置基本大小
const postcss = px2rem({
// 基准大小 baseSize,需要和rem.js中相同
remUnit: 16
})
固定表头表格高度自适应的写法:
```html
mounted() {
this.$nextTick(() => {
this.tableHeight = window.innerHeight - 175;
// 监听窗口大小变化
let self = this;
window.onresize = function() {
self.tableHeight = window.innerHeight - 175;
};
})
},
```