
为了清理终端的错误提醒,发现了以上的提醒
原来是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)
css 语法 :Gradient has outdated direction syntax. New syntax is like `to left` instead of `right`
阅读 18
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)