What does an in rgba mean?
Editor to share with you what the an in rgba means. I hope you will get something after reading this article. Let's discuss it together.
RGBA Color
RGB is a color standard, from the red (R), green (G), blue (B) changes and superimposed on each other to get a variety of colors. To put it bluntly, RGBA adds a transparency channel Alpha on the basis of RGB.
Syntax:
Rgba (RMagna Gregory BMaga)
Description:
R: red value (Red)
G: green value (Green)
B: blue value (Blue)
A: transparency (Alpha)
R, G, B parameters can be positive integers or percentages. The range of positive integer values is 0: 255 and the range of percentage values is 0. 0% 100. 0%. Values that are out of range will be subject to their nearest limit. Not all browsers support the use of percentage values.
Parameter An is transparent, similar to the opacity attribute, with values ranging from 0. 0 to 1. 0 and cannot be negative. Here is the correct use of RGBA colors:
Rgba (255pr. 255pr 0pr 0.5)
Rgba (50% 50% 80% 50% 0.5)
For example:
CSS3RGBA Color
* {padding:0;margin:0;}
Ul
{
Display:inline-block
List-style-type:none
Width:200px
}
Li
{
Height:30px
Line-height:30px
Font-size:20px
Font-weight:bold
Text-align:center
}
/ * 1st li*/
Li:first-child
{
Background-color:#FF00FF
}
/ * 2nd li*/
Li:nth-child (2)
{
Background-color:rgba (255pr. 0pr. 255pr 0.5)
}
/ * 3rd li*/
Li:last-child
{
Background-color:#FF00FF
Opacity:0.5
}
Php Chinese website
Php Chinese website
Php Chinese website
After reading this article, I believe you have a certain understanding of "what is the meaning of an in rgba". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!