【问题标题】:linear-gradient not working in Angular 8 with scss线性渐变在带有 scss 的 Angular 8 中不起作用
【发布时间】:2019-06-19 07:07:11
【问题描述】:

这是我的 scss 代码:

.banner {
  height: 170px;
  width: 100%;
  background-color: linear-gradient(45deg, red, blue); //not work
//   background-color: red; // <-this works 
}

不知道为什么,我从MDN上复制了线性渐变的代码,应该没有错..

【问题讨论】:

    标签: css sass scss-mixins


    【解决方案1】:

    似乎不是 Scss 的问题,而是 css 的问题
    删除-color,它只是background
    background: linear-gradient(45deg, red, blue);

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-05-30
      • 1970-01-01
      • 1970-01-01
      • 2019-10-06
      • 2016-10-06
      • 2012-10-03
      • 2011-07-28
      • 2016-12-18
      相关资源
      最近更新 更多