Css3 Gradient background and css3gradient background

Source: Internet
Author: User

Css3 Gradient background and css3gradient background

Css3 gradient is divided into two types: linear gradient (linear) and radial gradient (radial ).

1. linear gradient linear-gradient

Linear-gradient ([set direction], [set start color], [set multiple excessive colors], [set end color])

Parameters:

The first parameter: Specifies the gradient direction, which can be expressed by the keyword of "angle" or "English:

The first parameter defaults to 180deg, which is equivalent to "to bottom ".

There must be at least two colors, namely the start color and the end color.

Example:

<Style type = "text/css"> p {width: 300px; height: 100px; background-image:-webkit-linear-gradient (left, red, orange, yellow, green, blue, indigo, violet) ;}</style> <p> linear gradient background from left to right </p>

Ii. radial gradient radial-gradient

To be continued

 

 

 

Css3 gradient written by desert

Http://www.w3cplus.com/content/css3-gradient

 

Related Article

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.