gpt4 book ai didi

css - 渐变具有过时的方向语法。新语法类似于 `closest-side at 0 0` 而不是 `0 0, closest-side`

转载 作者:行者123 更新时间:2023-11-28 09:31:02 28 4
gpt4 key购买 nike

我不知道需要更改什么才能消除此错误:

Gradient has outdated direction syntax. New syntax is likeclosest-side at 0 0 instead of 0 0, closest-side.

以下是代码库中渐变类型的一些示例:

background: linear-gradient(#f7f7f7, #eee)
background-image: linear-gradient(
135deg,
#8C8862 2.94%,
$green-2 2.94%,
$green-2 11.76%,
#8C8862 11.76%,
#8C8862 14.71%,
$red-3 14.71%,
$red-3 50%,
#8C8862 50%,
#8C8862 52.94%,
$green-2 52.94%,
$green-2 61.76%,
#8C8862 61.76%,
#8C8862 64.71%,
$red-3 64.71%,
$red-3 100%)
background: linear-gradient( to top, $white 0%, $grey-3 100% )

有人知道为什么其中任何一个会抛出该错误吗?

最佳答案

尝试使用 背景图像:radial-gradient(25% 25% at 0 0, circle, hsla(0, 0%, 100%, 0.3), hsla(0, 0%, 0%, 0.3 ))

关于css - 渐变具有过时的方向语法。新语法类似于 `closest-side at 0 0` 而不是 `0 0, closest-side`,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54429954/

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