为什么我的CSS类不能在边缘&& ie上工作

问题描述 投票:0回答:1

我有angular7应用程序,并且为按钮编写了自己的类。按钮的代码和“ btn-baya”类类似于以下代码。

<a [routerLink]='["/eval-detail",evaluation.id]' class=" btn-baya">En savoir plus</a>

.btn-baya {
background-color: rgba(243, 116, 33) !important;
color: #ffffff !important;
cursor: pointer;
}

此代码在所有浏览器上均有效,但不适用于ie10和edge!任何解决方案请

html css internet-explorer angular7 edge
1个回答
0
投票

rgba颜色表示需要4个值。从它的名字开始-“红色”,“绿色”,“蓝色”,“ alpha”。您只有三个。

要么指定字母:

rgba(243, 116, 33, 1)

或使用rgb()

rgb(243, 116, 33)
© www.soinside.com 2019 - 2024. All rights reserved.