CSS3 gradients, Rgba and Hsla

Source: Internet
Author: User
Radial-gradient: Radial gradient
ellipse: Ellipse gradient default, circle: Circular gradient Defines the gradient size, specifying the end position: Farthest-corner: Default, Specifies the radius length of the radial gradient: from the center point to the farthest corner
from the center closest-side: from the center to the nearest edge of the center Closest-corner: from the center point to the nearest corner of the center farthest-side: from the center to the farthest edge from the center at: Specify the starting point location Linear-gradient: Linear Gradient Use transparency: the last parameter in the RGBA (,,,)
function can be a value from 0 to 1, which defines the transparency of the color, 0: Completely transparent, 1: completely
opaque rgba () and Hsla ()
R Gba:red-green-blue-alphahsla:hue-saturation-lightness-alpha (hue, saturation, brightness, transparency) you can use both of the two color modes in CSS3 to set their transparency while setting the color , Alpha stands for transparency in RGBA mode: The first three parameters range: 0-255, or 0%-100%;hsla mode: The first three parameters represent Hue (0-360), saturation (0%-100%), Brightness (0%-100%)

CSS3 gradients, Rgba and Hsla

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.