Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the CSS3HSLA color mode

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

In this issue, the editor will bring you about what is the CSS3HSLA color mode. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.

HSLA color mode is an extension of HSL color mode, which adds opacity parameters on the basis of color, saturation and brightness. Using the HSLA color mode, you can design different transparency effects.

Syntax:

Hsla (,)

Represents opacity, with a value between 0 and 1.

Example: simulate a gradient bar

XML/HTML Code copies content to the clipboard

HSLA Color div {height:20px;} div:nth-child (1) {background:hsla (120pc50% 50pcr 0.1);} div:nth-child (2) {background:hsla (120pc50% 50pcr 0.2);} div:nth-child (3) {background:hsla (120min50% 50pcr 0.3);} div:nth-child (4) {background:hsla (120mai 50% 50pcr 0.4) } div:nth-child (5) {background:hsla (120min50% 50% precinct 0.5);} div:nth-child (6) {background:hsla (120min50% 50pr 0.6);} div:nth-child (7) {background:hsla (120min50% 50pc0.7);} div:nth-child (8) {background:hsla (120min50% 50pc50%) 0.8) } div:nth-child (9) {background:hsla (120, 50% 50, 50, 0.9);} div:nth-child (10) {background:hsla (120, 50, 50, 50, 50, 1);}

Demo effect:

The above is the editor for you to share what is the CSS3HSLA color mode, if you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report