gpt4 book ai didi

css - 具有多个背景的线性渐变

转载 作者:行者123 更新时间:2023-11-28 05:34:24 25 4
gpt4 key购买 nike

具有多个背景的线性渐变的语法是什么?我的代码只生成黄色而不是从黄色到粉色的渐变?

background-color: rgba(red,1);
background:
url(/src/stat/chevronRight.svg) 90% 45% no-repeat,
linear-gradient(to bottom, rgba(yellow,1) 0%, rgba(pink,1) 100%);
background-size: 7px;

非常感谢

马丁

最佳答案

您可以将颜色设置为单词黄色,或者您可以使用RGBRGBAHexadecimal 颜色值。

div {
height: 100vh;
background: url('http://placehold.it/150x150'), linear-gradient(to bottom, yellow, pink);
background-repeat: no-repeat;
}
<div></div>

关于css - 具有多个背景的线性渐变,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38313788/

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