How to remove border from specific PrimeFaces p:panelGrid?

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

I have difficulty in removing border from a specific PrimeFaces .


    &l         


        
相关标签:
15条回答
  • 2020-12-02 16:04

    For the traditional as well as all the modern themes to have no border, apply the following;

    <!--No Border on PanelGrid-->
        <h:outputStylesheet>
            .ui-panelgrid, .ui-panelgrid td, .ui-panelgrid tr, .ui-panelgrid tbody tr td
            {
                border: none !important;
                border-style: none !important;
                border-width: 0px !important;
            }
        </h:outputStylesheet>
    
    0 讨论(0)
  • 2020-12-02 16:04

    Use below style modification to remove border for Primefaces radio button

    .ui-selectoneradio td, .ui-selectoneradio tr
    {
        border-style: none !important
    }
    
    0 讨论(0)
  • 2020-12-02 16:06

    If you just want something more simple, you can just change:

    <p:panelGrid >
    
    </p:panelGrid>
    

    to:

    <h:panelGrid border="0">
    
    </h:panelGrid>
    

    That's worked fine for me

    0 讨论(0)
提交回复
热议问题