Some CSS properties that are applicable on the mobile side

Source: Internet
Author: User

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

Remove the default gray translucent matte (iOS) or virtual box (Android) when clicking a link or text box

can also be written-webkit-tap-highlight:none

2,-wekkit-appearance:none

Remove native styles like input boxes, buttons, and add this property on iOS to customize styles for buttons and input boxes

The different types of input plus this attribute do not behave the same. Text,button no style, Radio,checkbox disappears directly.

3,-webkit-user-select:none

Prohibit page text selection, this property does not inherit.

4,-webkit-text-size-adjust:none

Prevents text from automatically resizing, and the text size changes when the device is rotated by default, not inherited.

5,-webkit-overflow-scrolling:touch

Resolves the lag when scrolling up and down.

6,-webkit-touch-callout:none;

Suppresses the pop-up menu when long pressing the page, both IMG and a tag are added (iOS) to be active.

Some CSS properties that are applicable on the mobile side

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.