📜  angular scss 不起作用 backgorund - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:29.156000             🧑  作者: Mango

代码示例1
$header-img: '~src/assets/images/home-background.jpg';
//add relative path variable
 background-image: linear-gradient(to right bottom , rgba(204, 137, 100, 0.8), rgba(40, 180, 133, 0.8)),url("#{$header-img}");
//or add relative path
/background-image: linear-gradient(to right bottom , rgba(204, 137, 100, 0.8), rgba(40, 180, 133, 0.8)), url('~src/assets/images/home-background.jpg');