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`.

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

翻译了报错信息后,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`.

这样就 OK 了。

上一篇:jquery--select下拉框文本右对齐


下一篇:移动web开发重点3:justify-content:flex-end和flex-direction: row-reverse的区别