如何关闭消息上的任何位置单击GROWL消息?(JSF,Primefaces)

Joh*_*012 3 user-interface jsf growl primefaces

如果用户点击消息的任何地方 ,我需要在我的UI中关闭growl 消息.

这是必需的,因为很难为用户找到Primefaces中默认的growl消息的关闭按钮.

有没有办法做到这一点?

Öme*_*alı 12

怎么样通过CSS解决它:

.ui-growl-icon-close {
width: 100%;
height: 100%;
background-image: none!important;
}
Run Code Online (Sandbox Code Playgroud)

把它放到你的CSS文件中.