gpt4 book ai didi

css - 如何删除 p :commendlink? 中的边框

转载 作者:太空宇宙 更新时间:2023-11-03 18:53:35 25 4
gpt4 key购买 nike

我在 xhtml 页面中有一个 p:commandLink

<p:commandLink onclick="routeDeleteConfirmation.show()" title="Delete">
<h:graphicImage class="deleteBinButtonLnk" />
<f:setPropertyActionListener value="#{route}"
target="#{routeController.selectedRouteHeader}"/>
</p:commandLink>

CSS:

.deleteBinButtonLnk {  width: 17px; height: 19px;
border-style: none !important;
padding: 2px 2px;
background: url('../images/buttons/delete_bin_off.png')
no-repeat;
}

.deleteBinButtonLnk:hover{ width: 17px; height: 19px;
border: none;
background: url('../images/buttons/delete_bin_on.png')
no-repeat;

这里它显示了 h:graphicImage 中图像的边框。我不需要边框。

请说出解决办法。

最佳答案

我明白了。

styleClass 而不是 <h:graphicImage>

<p:commandLink 
styleClass="accountEditBtn"
update="@form"
actionListener="#{someBean.someListener}"
</p:commandLink>

CSS类

.accountEditBtn { background-image: url('../resources/image/pencil_black.png'); }

关于css - 如何删除 p :commendlink? 中的边框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14160236/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com