我在PrimeFaces上工作,并且试图编辑组件的CSS属性。在咆哮时,我试图更改关闭图标的颜色,但我做不到。我尝试了很多,但仍然不知道。
您可以在右上角看到它的背景色为黄色(我将其设置为黄色,但无法更改图标颜色)。它总是那么蓝。这是我关于咆哮的代码;
.ui-growl{
position:fixed;
top:20%;
left:38%;
width: 23%;
}
.ui-growl .ui-state-highlight{
background: #d2524f;
border: #d2524f;
}
.ui-growl-message{
float: left;
font-size: 15px;
margin: 2% 0 0 22%;
}
.ui-growl .ui-growl-icon-close{
background-color:yellow;
}
Run Code Online (Sandbox Code Playgroud)