.bg {
width: 100%;
min-height: 100%;
background: url("../assets/imgs/enter-bg.png") no-repeat center;
background-size: 100% 100%;
}
There is an input box added, when the mobile browser keyboard is opened, the height will change. At this time, Yao Dongtao monitors the view change of the browser;
Dynamically modify the height;
this.layoutHeight = document.documentElement.clientHeight + 'px'