


javascript - How to solve the problem of input getting focus and soft keyboard blocking input in Apple 5
Dec 01, 2016 am 12:57 AM
Now I am encountering a problem that when the wap page gets focus on the iPhone 5 phone, it will block the input box. How to solve it?
Reply content:
Now I am encountering a problem that when the wap page gets focus on the iPhone 5 phone, it will block the input box. How to solve it?
Actually, @三月狠狠 is the solution, you can also refer to the weui demo. . .
Why is it blocked? My personal guess is that you used percentages to write the positioning. If you want to write the positioning in percentages, don’t write 100% for the outermost html height. Use JS to give it the page height.
This is caused by position: fixed. Solution: Replace fixed with relative when getting focus
@马Crazy Don’t write in fixed format. It can be judged that moving the input box up when clicked is also a solution.

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian

How To Set Up Visual Studio Code (VS Code) for PHP Development
