CSS3 is an upgraded version of CSS2, 3 is the version number, it adds a lot of powerful new features on the basis of CSS2.1. The mainstream browser Chrome,Safari,Firefox,Opera, and even 360 have already supported most of CSS3 's features,IE10 Also began to fully support CSS3 in the future.
Different browsers may require different prefixes when writing CSS3 styles. it indicates that the CSS property or rule has not yet become part of the World Wide Web Standard, is the browser's private property, although the newer version of the browser does not need a prefix, but in order to better forward compatibility prefix is not necessary.
|
prefix |
Browser |
|
-webkit |
chrome and Safari |
|
-moz |
firefox |
|
-ms |
ie |
|
-o |
opera |
New features of CSS3
We used to use class, ID or tagname to select HTML elements, and CSS3 's selectors were incredibly powerful. They can reduce the number of class and ID in the label more convenient maintenance style sheet, better implementation of the separation of structure and performance.
Fillet effects used to make rounded corners usually use a background picture, or a tedious element to piece together, now very simple border-radius to help you easily fix.
Block Shadows and text shadows
Color CSS3 supports more colors and a wider range of color definitions. The new color CSS3 supports HSL, CMYK, HSLA and RGBA.
Gradient effect
Personalize fonts
Multi-background map
border background image border apply background picture.
Deformation processing
multi-column layouts Allows you to implement multi-column layouts without using multiple div tags. The browser interprets this property and generates multiple columns, allowing the text to implement a multi-column structure that imitates the newspaper.
Media Enquiry
(MU network "Ten Days Proficient CSS3" study notes)
DAY1:CSS3 Learning