Home > Web Front-end > CSS Tutorial > Additional color properties provided by CSS3

Additional color properties provided by CSS3

WBOY
Release: 2023-08-25 20:57:14
forward
576 people have browsed it

CSS3 提供的附加颜色属性

CSS3 has the following additional color properties -

  • RGBA Color
  • HSL Color
  • HSLA Color

Let’s see what HSL color is:

HSL stands for Hue, Saturation, Brightness. Here, Huge is the degree of the color wheel, and Saturation and Lightness are percentage values ​​between 0 and 100%.

Sample syntax for HSL is as follows:

#g1 {background-color: hsl(120, 100%, 50%);}
#g2 {background-color: hsl(120, 100%, 75%);}
#g3 {background-color: hsl(120, 100%, 25%);}
Copy after login

The above is the detailed content of Additional color properties provided by CSS3. For more information, please follow other related articles on the PHP Chinese website!

source:tutorialspoint.com
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