css3--background

Source: Internet
Author: User

First, gradient: gradients

Linear gradient (linear gradients)

Background:-webkit-linear-gradient (90deg,red 10%,blue);

1, need to have a kernel prefix

2, the direction can be letter or angle (left top right bottom)

3. Counterclockwise Rotation for angle

4. Unlimited number of color values

Radial gradient (radial gradients)

Background:-webkit-radial-gradient (90deg,red 10%,blue);

1, do not accept the angle parameter

2, the default is the center

Second, Reflection: Box-reflect

-webkit-box-reflect:below 0-webkit-linear-gradient (Top,rgba (0,0,0,0) 20%,rgba (0,0,0,1));

Parameters: Direction (above,below,left,right), distance, gradient

Background-size background size setting px%

Third, the background cutting:

Background-clip

Border-box 丨 Padding-box 丨 Content-box

Iv. background start Position: Background-origin

Border-box 丨 Padding-box 丨 Content-box

V. Background mask:-webkit-mask

-webkit-mask-image:url 丨 gradient/* You can use a picture or gradient as a mask layer */

-webkit-mask-repeat;repeat 丨 repeat-x 丨 repeat-y 丨 no-repeat

-webkit-mask-position:x y;

-webkit-mask-clip:border 丨 padding 丨 content

-webkit-mask-origin:border 丨 padding 丨 content

css3--background

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.