gpt4 book ai didi

css - "top"和 "to top"线性渐变的方向相同吗?

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

linear-gradient() 的浏览器实现已经发展到支持 topto top 作为 anchor 值。它们是同向还是相反?

最佳答案

它们相反to top 在元素底部使用第一个颜色参数,而 top 在顶部使用第一个颜色参数。

这是一个 fiddle . MDN 有 full details and history .

关于css - "top"和 "to top"线性渐变的方向相同吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19486680/

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