The input box of H5 page in iOS is located at the bottom, and it is obscured by virtual keyboard when getting focus.

iOS H5 page input box is located at the bottom, the focus is blocked by the virtual keyboard, on the Internet to check a variety of methods, 8plus no problem, with 6s to try a lot of methods, not very effective, have not done the god, help, thank you very much!

Jan.11,2022

https://blog.csdn.net/DeepLie.


We can calculate the soft keyboard height when the soft keyboard pops up, and then set the input box {position: fixed; bottom: {soft keyboard height}} to achieve our goal. Calculate IOS soft keyboard height IOS device to get soft keyboard height

Menu