Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cocoa/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Primefaces 更改面板的标题样式类_Primefaces - Fatal编程技术网

Primefaces 更改面板的标题样式类

Primefaces 更改面板的标题样式类,primefaces,Primefaces,我有面板,只想更改其中一个面板的标题背景色。因此,我不能仅仅更改ui面板标题栏样式 我尝试了下列方法,但没有成功 <p:panel ....> <f:facet name="header" styleClass="ui-panel-my-titlebar> .... </f:facet> </p:panel> 我将其用于以下方面: <p:panel styleClass="customTitleBar"> <

我有面板,只想更改其中一个面板的标题背景色。因此,我不能仅仅更改ui面板标题栏样式

我尝试了下列方法,但没有成功

<p:panel ....>
  <f:facet name="header" styleClass="ui-panel-my-titlebar>
    ....
  </f:facet>
</p:panel>

我将其用于以下方面:

<p:panel styleClass="customTitleBar">
  <f:facet name="header">
    ....
  </f:facet>
</p:panel>
<p:panel styleClass="customTitleBar">
  <f:facet name="header">
    ....
  </f:facet>
</p:panel>
.customTitleBar > .ui-panel-titlebar {
    background: #BBBBBB;
    }