1
我試過這個,但是我的commandlink消失了。當我試圖找到螢火蟲,它在那裏,但大小爲0 x 0像素。如何在primefaces中的鼠標懸停上更改commandlink圖像?
.myNewButton {
width: 50px !important;
height: 50px !important;
background-image: url('/resources/img/e_menu_icons/x.png') !important ;
}
.myNewButton:hover {
width: 50px !important;
height: 50px !important;
background-image: url('/resources/img/e_menu_icons/e.png') !important ;
}
<p:commandLink styleClass="myNewButton" value=""
oncomplete="myDialog.show(); return false;"
action="#{myBean.actionMyAction()}">
</p:commandLink>