window.onresize = () => {
return (() => {
window.screenWidth = document.body.clientWidth * 0.375
window.screenHeight = document.body.clientHeight - 100
this.proofHeight = window.screenHeight
this.lengthWidth = window.screenWidth
this.hengWidth = document.body.clientWidth * 0.52 - 230
this.volueHeight = document.body.clientHeight - 430
})()
}
这个方法在窗口发生变化或者框架被调整大小的时候触发
写高度宽度的时候最好用百分比