gpt4 book ai didi

Css - 分离颜色透明

转载 作者:太空宇宙 更新时间:2023-11-04 12:30:08 26 4
gpt4 key购买 nike

是否可以只定义颜色透明?例如

<h3 class="header">header</h3>
h3{
color:red;
}
.header{
color:rgba(null,null,null,0.3);/* red 30%*/
}

最佳答案

使用不透明度:0.3

如果您希望元素看起来像不可见,请使用值 0。

值为 1 表示没有透明度。

关于Css - 分离颜色透明,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27724320/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com