Mobile soft keyboard pop-up affects layout
1) The previous period of time for the mobile page, because the height of only 1 pages, so used height:100%;width:100%;
The layout has no big impact when you click the input box to eject the soft keyboard under iOS.
When the input box may be pressed by the soft keyboard, there is a problem with some Android, Huawei's own browser and UC will have layout problems.
The reason may be because, when the soft keyboard pops up, it changes the height so that the height:100% cannot reach the original height.
Workaround:
$ (document). Ready (function () {
$ (' body '). Height ($ (' body ') [0].clientheight);
});
After loading the page, JS gives the body a fixed height.
2) also encountered before, the mobile side click on the input box, the page offset a part of the left, but too long, forget what browser, and can not reproduce, the solution is to make the size of the input box center.
PS: Under the Spit slot Huawei comes with a browser and UC does not recognize CSS3 's new unit, VW,VH.
Mobile soft keyboard pop-up affects layout