Problems with front-end mobile development under Android

Source: Internet
Author: User

First, click Input,textarea,select and other form elements, there is an extra text window

Workaround:

input,textarea,select{

-webkit-appearance:none;

-webkit-tap-highlight-color:rgba (0,0,0,0);

-webkit-user-modify:read-write-plaintext-only;

}

Note:-webkit-user-modify affects the Password box, the Password box displays clear text, so it is used alone.

Two: Scroll bar setting problem

Through Overflow:scroll can make the content can be scrolled, but no physical elasticity, relatively stiff, no scroll bar. If you want iOS that elastic scrolling effect can use CSS

-webkit-overflow-scrolling:touch;

But with this CSS there will be scrollbars (usually not displayed, scrolling is displayed)

Third, set select wide, high invalid

Description: Under the Android Select dropdown box height will only adapt to the font size, the default with rounded corners, especially ugly.

Workaround:

Font-size:xrem;

By setting the font, REM can solve the problem of a height that cannot be unfolded.

However, for the default fillet, temporarily through the transparent select, with a false label instead of Selset, select after the drop-down item by assigning a value release label to achieve the selected effect.

Four, translate under the Samsung flashing problem

Workaround:

-webkit-backface-visibility:hidden;

-moz-backface-visibility:hidden;

-ms-backface-visibility:hidden;

Backface-visibility:hidden;

-webkit-perspective:1000;

-moz-perspective:1000;

-ms-perspective:1000;

perspective:1000;

Five, fixed positioning elements, the page display is not stable

This temporarily has not found a better solution, the master passing by, looking pointing!

Problems with front-end mobile development under Android

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.