0
点赞
收藏
分享

微信扫一扫

css 语法 :Gradient has outdated direction syntax. New syntax is like `to left` instead of `right`

践行数据分析 2022-04-14 阅读 15
css

在这里插入图片描述
为了清理终端的错误提醒,发现了以上的提醒
原来是gradient的语法过时了
旧的

background-image: linear-gradient(bottom,#ffb400,#f2f2f2);

新的

background-image: linear-gradient(to bottom,#ffb400,#f2f2f2);

总结:
将left, right, top, bottom 替换成 (to left, to right, to bottom, to top)

举报

相关推荐

0 条评论