版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_40945965/article/details/82667645
<style>
p{
color: red;
color: rgb(255,0,0);
color: rgba(255,0,0,1);
color: #FF0000;
color: #F00;
}
</style>
在rgba中
rgb的取值为0~255;a的取值未0~1;
r:表示red,取值范围0~255;
g:表示green,取值范围0~255;
b:表示blue,取值范围0~255;
a:表示透明度,取值范围0~1;