css - Angular 12 CSS 不正确
问题描述
我的角度组件中有以下 css
.folders {
border-left: 5px solid #b8744f;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
-moz-box-shadow: inset 0 0 1px #fff;
-webkit-box-shadow: inset 0 0 1px #fff;
/*START*/
background: -webkit-gradient(
linear,
center top,
center bottom,
from(#327aa4),
color-stop(45%, #2e4b5a),
to(#5cb0dc)
);
/*END*/
background: -moz-linear-gradient(
top,
rgba(50, 123, 165, 0.75),
rgba(46, 75, 90, 0.75) 50%,
rgba(92, 176, 220, 0.75)
);
border: solid 1px #102a3e;
box-shadow: inset 0 0 1px #fff;
display: inline-block;
overflow: visible;
}
根据 IDE,注释 START 和 END 之间标记的部分不正确。它一直在抱怨如下:
参数不匹配([线性 | 径向] , , [ ,]? [, ]? [, [color-stop() | to() | from()]]*)
-webkit-gradient 在 Angular 12 中不起作用它一直指向一个参数
解决方案
推荐阅读
- linux - xdotool redhat 7 创建 xdo 实例错误
- etl - DBT docs - 如何更改默认标题和默认文档生成的 dbt 徽标
- python - 如果任何单元格抛出错误,我如何让我的 jupyter 笔记本发出蜂鸣声/警告我?
- python - 如何更改小部件上某个区域的属性?
- r - 从数字字符串中仅提取一些数字
- vb.net - 如何检查一个值是否重复,如果重复需要删除数据表中的两行
- python - python:通过公司代理服务器后面的 pip 安装包
- html - 将边框应用于div时如何防止div元素移动?
- scala - AKKA `Http().singleRequest` 可能会卡在一个节点上
- java - 提交任务中的值始终相同 - ExecutorService