Mobile Side FAQs

Source: Internet
Author: User

1, pull the scroll bar up and down, slow
Body {
-webkit-overflow-scrolling:touch;
Overflow-scrolling:touch;
}


2. Prohibit copying and selecting text

Element {
-webkit-user-select:none;
-moz-user-select:none;
-khtml-user-select:none;
User-select:none;
}
Resolve mobile devices to select page text (depending on product needs)


3, long time to press and hold the page flash back

element {
-webkit-touch-callout:none;
}
4. The default inner shadow of the input box under iphone and ipad

element{
-webkit-appearance:none;
}
5. Translucent gray matte when touching elements under iOS and Android

Element {
-webkit-tap-highlight-color:rgba (255,255,255,0)
}
Set the alpha value to 0 to remove the translucent gray matte, note: The Transparent property value is not valid under Android.

The following article has detailed introduction, address: Http://www.haorooms.com/post/phone_web_ysk

6. Active compatible processing

<body ontouchstart= "" >
7. Animation definition 3D hardware acceleration enabled

Element {
-webkit-transform:translate3d (0, 0, 0)
Transform:translate3d (0, 0, 0);
}
Note: 3D distortion consumes more memory and power


8.1px frame of Retina screen

element{
Border-width:thin;
}

9. When rotating the screen, the font size adjustment problem

HTML, body, form, fieldset, p, Div, H1, H2, H3, H4, H5, h6 {
-webkit-text-size-adjust:100%;
}
10. Transition splash Screen

/set how embedded elements are rendered in 3D space: Reserved 3D/

-webkit-transform-style:preserve-3d;
/sets whether the back of the element to be converted is visible when facing the user: hidden/

-webkit-backface-visibility:hidden;
11. Fillet Bug

Some Android phone rounded corners fail

Background-clip:padding-box;

Mobile Side FAQs

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.