Do mobile page often encounter the following cases, in the background of the page to write a form, and the bottom in order to adapt to different mobile phones also have to use absolute positioning, because the container height is usually set to 100%, then on the Android phone on the soft keyboard window will be the background picture and other things squeeze up, the solution is as follows:
Define a large container as a fixed layout in CSS styles
. Wrap{ position:fixed; left:0; top:0; }
In JS to force the height of the page to him, the equivalent of automatic open
var // querying the width of a device var // querying the device's height $ (//$ (". Wrap"). Height (y);//Assign the width and height of the device to the page
Solve the problem of compressing the layout of the background or percent position when the Android phone keyboard pops up