Home >Web Front-end >HTML Tutorial >CSS3 background gradient gradient_html/css_WEB-ITnose
CSS3 Gradient is divided into linear-gradient (linear gradient) and radial-gradient (radial gradient). Remember that gradient is not a property of CSS3, but the value of an attribute. Although it is not specifically stated in CSS3 that gradient is for background, what I know so far is that only background will apply the gradient attribute (background-image Also possible).
Let’s first directly illustrate the basic usage of these two gradients through two examples: Share a best-used UI front-end framework!
Linear gradient linear-gradient:
. Code
The -webkit-gradient in the second line is the way of writing the old version of the webkit kernel browser.
The effect is as follows:
Radial gradient radial-gradient: Share a most useful UI front-end framework!
.code
Effect:
IE browser’s support for gradient is quite different from other modern browsers. We will discuss it in <