How to remove border from specific PrimeFaces p:panelGrid?

前端 未结 15 1775
再見小時候
再見小時候 2020-12-02 15:27

I have difficulty in removing border from a specific PrimeFaces .


    &l         


        
15条回答
  •  爱一瞬间的悲伤
    2020-12-02 15:51

    As mentioned by BalusC, the border is set by PrimeFaces on the generated tr and td elements, not on the table. However when trying with PrimeFaces version 5, it looks like there is a more specific match from the PrimeFaces CSS .ui-panelgrid .ui-panelgrid-cell > solid which still result in black borders being shown when appyling the style suggested.

    Try using following style in order to overide the Primefaces one without using the !important declaration:

    .companyHeaderGrid tr, .companyHeaderGrid td.ui-panelgrid-cell {
        border: none;
    }
    

    As mention make sure your CSS is loaded after the PrimeFaces one.

提交回复
热议问题