Recently cut the page, found the mobile login page, with the type of input box,
There is nothing wrong with the page itself, uploading to the test server, accessing the iphone with no problems, but when the colleague gets the focus with the Android phone, the problem comes,
After the soft keyboard is paged out, the input box is squeezed to the top of the page, the content covers the logo, and the page is instantly low.
Then a variety of changes, the move up the part of fixed positioning, JS various control heights, but geese are not very good effect. After various degrees Niang and try, finally return to normal
Finally, the entire page background moves up, not just the content. Paste the code, the emphasis is on the markup section
Problem solving, so easy, hope to help everyone!
Mobile Login page input gets focus after page layout and input box Move up problem