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

阅读 15

2022-04-14

在这里插入图片描述
为了清理终端的错误提醒,发现了以上的提醒
原来是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)

0 0 举报