Android background image adaptation problem

.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'

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324860094&siteId=291194637