CSS3 's new UI scheme

Source: Internet
Author: User

Border-radius rounded Corners

Parameter can be a pixel or a percentage
When a parameter is scoped to Four Corners
When two parameters are scoped to upper left, lower right, lower right
When three parameters are scoped to top left upper right upper left bottom right
When four parameters are scoped to upper right, upper right, lower left
When there is '/' in the parameter, for example 100px/150px: X-Axis radius/y axis radius

-border-image Border Background

-border-image: Picture link picture cutting up and down picture cutting left and right border arrangement way;
Border-image-repeat:; border arrangement
Round tile is the same as the repeat effect
Repeat repeat
Stretch stretch Default
In-webkit-, the middle part is automatically mended.

-moz-border-left-colors: Border Multi-color processing

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

Note: Currently only works in Firefox

-webkit-repeating-linear-gradient tiling gradients

-linear-gradient: Linear gradient

Linear gradients not supported under IE9 and 9

Processing with filters:
Filter:progid:DXImageTransform.Microsoft.gradient (startcolorstr= ' red ', endcolorstr= ' Blue ', gradienttype= ' 0 ');
can be compatible to IE6
StartColorStr Start Color
EndColorStr End Color
GradientType 1 for from Left->right 0 for from Top->bottom

-radial-gradient: direction, keywords (optional), color;

Radial gradient keyword

Closest-size gradient to the nearest end
Closest-corner gradient to the nearest corner
Farthest-corner to the far corner gradient
Contain contains (elements that contain them so that their gradients do not go beyond the elements)
Cover overlay (The gradient fills the entire element)

Background-size: Background size

Background-size:contain contains (shrinks) the element containing the background map (the background map is just put into the box)
Cover overlay (enlarge) the background image, etc, fills up the element after zooming in

Background-origin: Background map origin settings

Background-origin:border-box; Start calculation from the border
Content-box Starting from content
Padding-box starting from inner filler (default)
Background-clip: Background Clipping

Background-clip:border-box; Default
Solve the problem of background picture with semi-transparent border:
Padding-box removal of background outside padding
Content-box removal of background outside content
-webkit-background-clip:text; Remove background from text (not currently available for Firefox)

CSS3 's new UI scheme

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.