About the Mobile Input keyboard occlusion page

Source: Internet
Author: User

Problem display:

When lifting the phone's soft keyboard will cover the verification code input content, resulting in blind input

Problem solving:

On the parent element style of the package login, add:

. Login{position:fixed;background-color: #fff; width:600px;box-sizing:border-box;border-radius:50px;margin:0 auto; Transform:translatey (50%);p adding:40px 70px;left:50%;margin-left: -300px;  bottom:50%;}

The point is bottom:50% (in the case where you want the login box to be centered)

We can find that when the page is lifted from the mobile side of the soft keyboard when the height of the page has changed, using the fixed layout, detected changes and made the corresponding changes, from the bottom of the positioning can ensure that the keyboard appears, the content of the page can be displayed normally.

About the Mobile Input keyboard occlusion page

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.