CSS的一个小bug,Gradient has outdated direction syntax. New syntax is like `to left` instead of `right`....

在vue重新渲染页面的时候,报了一个错误:

CSS的一个小bug,Gradient has outdated direction syntax. New syntax is like `to left` instead of `right`...._第1张图片

CSS的一个小bug,Gradient has outdated direction syntax. New syntax is like `to left` instead of `right`...._第2张图片

翻译了报错信息后,Gradient has outdated direction syntax. New syntax is like to left instead of right.

翻译:渐变有过时的方向语法。新语法与 “to left” 类似。

意思是这个写法过时了,需要加上 to

CSS的一个小bug,Gradient has outdated direction syntax. New syntax is like `to left` instead of `right`...._第3张图片

这样就 OK 了。

转载于:https://www.cnblogs.com/hukuangjie/p/11402023.html

你可能感兴趣的:(CSS的一个小bug,Gradient has outdated direction syntax. New syntax is like `to left` instead of `right`....)