+
95
-

回答

1、最外层div设置style="height:{windowHeight}px; flex: 1;"  

2、data中获取windowHeight设备高度

data() {
return {
windowHeight: uni.getSystemInfoSync.windowHeight
}
},

网友回复

我知道答案,我要回答