从所有PrimeFaces p:panelGrid组件中删除边框

Joh*_*tts 5 css jsf border primefaces panelgrid

我需要使用primefaces隐藏所有panelgrids的所有边框.我试过他没有效果:

table {
    border: none;
}

table tr, table td {
    border: none;
}
Run Code Online (Sandbox Code Playgroud)

我能做什么?

Bal*_*usC 7

您需要至少与PrimeFaces默认选择器一样具体.

.ui-panelgrid>*>tr,
.ui-panelgrid .ui-panelgrid-cell {
    border: none;
}
Run Code Online (Sandbox Code Playgroud)

!important除非您需要覆盖styleHTML元素上的硬编码,否则请勿使用.

也可以看看: