The exercise of several CSS3 properties on the mobile side

Source: Internet
Author: User

Career change to do the front end, to work for one weeks, do not understand anything, today learned a few new CSS3 attributes, recorded.

Note: All tests are tested on chrome on phone mode and may be error with real phone environment

1:-webkit-tap-heighlight-color:rgba (); Change safari with most Android clickable elements, resulting in a translucent gray background when clicked

Active in iOS Safari with most Android, Alpha set to 0 o'clock, remove background color;

Click Yes to the default state:

2::: Selection Selector

Description of the school:

:: Selection Selector match selected by the user is part (that is, when the text is selected, the default selected state is blue, you can select the corresponding state by: Selection selector setting).

Only a few CSS properties can be applied to:: Selection selector: color, background, cursor, and outline.

Compatibility:

ie9+, Opera, Google Chrome, and Safari support:: Selection selector.

Firefox supports alternate::-moz-selection.

3:-webkit-nbsp-mode:normal | Space did not make an example, do not know how to use

4:-webkit-text-strock set the seat border width,-webkit-text-strock:2px red; combine color:transparent; create a skeleton font. :

p.text-stroke{color:transparent;-webkit-text-stroke:1px red;font-size:160px;<!--font size to Big!!! -->}

  

The exercise of several CSS3 properties 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.