New UI solution of CSS3 and UI solution of CSS3

Source: Internet
Author: User

New UI solution of CSS3 and UI solution of CSS3

Border-radius rounded corner

The parameter value can be pixel or percentage.
The range of a parameter is four.
When two parameters are used, the range is upper left, lower right, and lower right.
When the three parameters are used, the range is top left, top right, bottom left, and bottom right.
When the four parameters are used, the range is top left, top right, bottom right, and bottom left.
If '/' is included in the parameter, for example, 100px/150px, it indicates the X axis radius/Y axis radius.

-Border-image border background

-Border-image: the way in which the left and right sides of an image are cut and the left and right sides of an image are arranged;
Border-image-repeat:; border arrangement
Round tile has the same effect as repeat
Repeat already exists.
Stretch default
In-webkit-, the intermediate part is automatically added.

-Moz-border-left-colors: border multi-color processing

Example:-moz-border-left-colors: red blue yellow;

Note: currently, it is only effective in Firefox

-Webkit-repeating-linear-gradient tile gradient

-Linear-gradient: linear gradient

Linear gradient is not supported for IE9 and earlier

Filter processing:
Filter: progid: DXImageTransform. Microsoft. gradient (startColorstr = 'red', endColorstr = 'blue', GradientType = '0 ');
Compatible with IE6
StartColorstr start color
EndColorstr end color
GradientType 1 is from left-> right 0 is from top-> bottom

-Radial-gradient: direction, keyword(Optional), Color;

Radial Gradient keyword

Closest-size gradient to the nearest end
Closest-corner gradient to the nearest corner
Farthest-corner gradient to the farthest corner
Contain (the element contains the gradient so that it does not go beyond the element)
Cover overwrite (fill the entire element with a gradient)

Background-size: background size

Background-size: The contain include (zoom out) element contains the background image (the background image is just placed in the box)
Cover overwrite (zoom) background image after proportional zoom in, fill in the element

Background-origin: background image origin settings

Background-origin: border-box; calculated from the border
Content-box calculation starts from the content
Padding-box starts from inner whitelist (default)
Background-clip: crop the background

Background-clip: border-box; default
Solve the Problem of displaying a background image with a translucent border:
Padding-box remove background other than padding
Content-box remove background other than content
-Webkit-background-clip: text; remove background other than text (currently Firefox is not applicable)

 

Related Article

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.