Home > Web Front-end > CSS Tutorial > Detailed explanation of linear-gradient parameters in CSS3

Detailed explanation of linear-gradient parameters in CSS3

Y2J
Release: 2017-05-19 15:05:52
Original
5915 people have browsed it

1. Syntax

Detailed explanation of linear-gradient parameters in CSS3

2. Parameters

Detailed explanation of linear-gradient parameters in CSS3

The first parameter: Specify the gradient direction, you can use "Angle" keyword or "English" to express:

When the first parameter is omitted, the default is "180deg", which is equivalent to "to bottom".

The second and third parameters represent the starting point and end point of the color, and can have multiple color values.

For example:

background-image:linear-gradient(to left, red,orange,yellow,green,blue,indigo,violet);
Copy after login

This attribute has been supported by browsers such as IE10+, Firefox19.0+, Chrome26.0+ and Opera12.1+.

【Related recommendations】

1. CSS3 free video tutorial

2. CSS linear-gradient() syntax detailed explanation

3. Detailed explanation of linear-gradient examples in CSS3

4. Detailed explanation of how to use lineaer-gradient in CSS3

5. In-depth explanation of oblique linear gradient in CSS3 lineaer-gradient

The above is the detailed content of Detailed explanation of linear-gradient parameters in CSS3. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template