Fixed issue with iOS not supported

Source: Internet
Author: User

Our company has a fixed style at the bottom of the page, and every time the keyboard pops up, the iOS fixed will be out of shape (as far as I know Android doesn't have the problem).

I did a simple processing before I passed the product's consent (Method 1).

Method One:

Focus makes the fixed block position into relative, which is the simplest way to handle it.

Here's my little demo.

<! DOCTYPE html>

Method Two:

Position:absolute; re-calculates the position each time the scroll is rolled.

Here is my little demo,touch when the hidden processing, input focusout and window resize when the fixed position is recalculated.

<! DOCTYPE html>

Fixed issue with iOS not supported

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.