Home>Article>Web Front-end> What is the difference between css3 and css

What is the difference between css3 and css

醉折花枝作酒筹
醉折花枝作酒筹 Original
2021-07-14 09:59:29 2872browse

The difference between css3 and css is: 1. CSS3 is an upgraded version of CSS technology. CSS is a computer language used to express file styles such as HTML or XML; 2. CSS3 mainly includes modules such as box models and list modules. CSS can statically modify web pages, and can also cooperate with various scripting languages to dynamically format various elements of web pages.

The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.

1. Different references

1. CSS3: It is an upgraded version of CSS (Cascading Style Sheets) technology. It was formulated in 1999. On May 23, 2001, W3C completed the CSS3 working draft.

2. CSS: It is a computer language used to express file styles such as HTML (an application of Standard Generalized Markup Language) or XML (a subset of Standard Generalized Markup Language).

2. Different contents

1. CSS3: Mainly includes modules such as box model, list module, hyperlink method, language module, background and border, text effects, multi-column layout, etc.

2. CSS: It can not only statically modify web pages, but also dynamically format various elements of web pages in conjunction with various scripting languages.

3. Different features

1. CSS3: There are many new features, such as rounded corners, graphical borders, block shadows and text shadows, using RGBA to achieve transparency effects, gradient effects, using @Font-Face implements customized fonts, multiple background images, text or image deformation processing (rotation, scaling, tilting, movement), multi-column layout, media queries, etc.

2. CSS: It can perform pixel-level precise control over the layout of element positions in web pages, supports almost all font sizes and styles, and has the ability to edit web page objects and model styles.

CSS and CSS3 are both styles. CSS3 adds style attributes to CSS. CSS3 is the latest CSS standard. css3 just has some more style settings than css. CSS3 is forward compatible, that is to say, valid codes in CSS are also valid in CSS3.

New features of CSS3:

CSS3 rounded border: border-radius (solve the problem of the original rounded border requiring screenshots)

CSS3 text shadow and box shadow : text-shadow, box-shadow (can be used to implement label borders or shadows)

CSS3 background size, background cutting and background origin: background-clip background-origin background-size (used on mobile terminals to handle backgrounds Image adaptation problem)

CSS3 deformation transform (two-dimensional deformation and three-dimensional effects)

CSS3 animation animation (implementation of complex animation)

CSS3 transition transition (implementation of simple animation)

CSS3 Media Query media query (mainly used to implement responsive layout)

Recommended learning:css video tutorial

The above is the detailed content of What is the difference between css3 and css. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn