1.calc(100% - 100px); //受父元素高度影响
2.calc(100vh - 542px) //不受父元素高度影响,“100vh”就是指元素的高度等于当前浏览器的视窗高度,可视区域高度
option: {
header: false,
headerAlign: ‘center’,
highlightCurrentRow: true,
height: ‘calc(100vh - 542px)’,
…
}
1.calc(100% - 100px); //受父元素高度影响
2.calc(100vh - 542px) //不受父元素高度影响,“100vh”就是指元素的高度等于当前浏览器的视窗高度,可视区域高度
option: {
header: false,
headerAlign: ‘center’,
highlightCurrentRow: true,
height: ‘calc(100vh - 542px)’,
…
}