After the input box is displayed in ios, the position: fixed becomes invalid. iosfixed

Source: Internet
Author: User

After the input box is displayed in ios, the position: fixed becomes invalid. iosfixed

Recently, when I used AmazeUI for Mobile Web development, I encountered a number of position: fixed issues. Position: fixed has been implemented in Android 2.2 and later versions. However, when the keypad is activated in iOS 8 and earlier systems, the position may be misplaced.

For example:

Inspired by Liu Hua children's shoes (http://my.csdn.net/liu__hua) on CSDN, I found a perfect solution.

<! DOCTYPE html> 

When the keyboard appears, the header and bottom automatically jump to the top and bottom of the page. When the keyboard is hidden, it is fixed at the head and bottom.

Content reproduced in: http://blog.csdn.net/liu__hua/article/details/40106595

For record.

 

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.