Gradient has outdated direction syntax. New syntax is like `to left` instead of `right`.

版权声明:商业用途请联系博主,非商业转载请标明出处。 https://blog.csdn.net/qq_15807167/article/details/82720860

异常信息

由于语法过时,导致此部分内容不生效

WARNING in ./src/app/pages/login/login.component.scss
(Emitted value instead of an instance of Error) autoprefixer: G:\project\CX_Project\HomePage\src\app\pages\login\login.component.scss:294:2: Gradient has outdated direction syntax. New syntax is like `to left` instead of `right`.

解决方式

background: linear-gradient(left, #21d4fd, #b721ff);

更改为:··

background: linear-gradient(to left, #21d4fd, #b721ff);

这里写图片描述

猜你喜欢

转载自blog.csdn.net/qq_15807167/article/details/82720860