vue项目项目中在mountd里面获取视图的高度
mounted() {
const that = this
window.onresize = () => {
return (() => {
window.screenHeight= document.body.clientHeight
that.screenHeight= window.screenHeight
})()
}
},
在ios上,fixed定位因为input导致手机下面出现空白,视图变小
原文:https://www.cnblogs.com/carrie5/p/10298269.html