簡體   English   中英

如何在p:commendlink中刪除邊框?

[英]How to remove the border in p:commendlink?

我在xhtml頁面中有ap: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'); }

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM