IOS fixed positioning bottom input input box, pop-up input keyboard blocked input when getting focus

Source: Internet
Author: User

Mobile page often do such an effect, look at the picture below, the focus is that fixed positioning the bottom, there is a input box, in the input characters, the Android phone look is no problem!

1, the page does not click the bottom input initial state

2, the look under the Android phone, everything is so normal, it is perfect.

3, iOS phone, is so wayward, no way, completely blocked, blocked, blocked the ..., you must slide the entire page to the bottom to see it, hide-and-seek AH is.

Not afraid of embarrassing said, this problem met more than a year to finally get the perfect solution, more wonderful, more dog blood is the code only special line!

Please keep your eyes wide open!

<script type= "Text/javascript" >$ ("Input"). On ("click", Function () {setTimeout (function () {      Document.body.scrollTop = document.body.scrollHeight;  },300);  }) </script>

Concrete reality effect, I will not show, pleasantly surprised to discover, tried to know, is not?

IOS fixed positioning bottom input input box, pop-up input keyboard blocked input when getting focus

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.