我有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!任何解决方案请
rgba
颜色表示需要4个值。从它的名字开始-“红色”,“绿色”,“蓝色”,“ alpha”。您只有三个。
要么指定字母:
rgba(243, 116, 33, 1)
或使用rgb()
:
rgb(243, 116, 33)