1. 程式人生 > >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`.

異常資訊

由於語法過時,導致此部分內容不生效

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);

這裡寫圖片描述