2016-11-25 18 views
-1

各ダイアログに異なるヘッダーカラーを設定したいとします。 私はこのようないくつかのダイアログがあります。プライムフェイス内の各ダイアログヘッダーの一意のスタイル

<p:dialog header="dilog name" widgetVar="inputDialog" id="inputDlg" 
      modal="true" resizable="false" class="topRed" 
      onHide="PF('inputDialogTabViewWidget').select(0)"> ...  
</p:dialog> 

をそして私はこのスタイルがあります。

.ui-widget-header .topRed { 
    border: 1px solid #e78f08; 
    font-family: 'PT Sans Narrow',sans-serif; 
    background: url(../img/title-bg3.png) repeat-x !important; 
    font-weight: bold; 
} 

動作していないが、私はBACEのスタイルを上書きするとき、すべてが正常に動作します。下のCSSは、すべてのダイアログに対して1つのスタイルを設定します。 .top-赤.ui-ウィジェットヘッダとして

.ui-widget-header { 
    border: 1px solid #e78f08; 
    font-family: 'PT Sans Narrow',sans-serif; 
    background: url(../img/title-bg3.png) repeat-x !important; 
    font-weight: bold; 
} 
+0

は '.ui-ウィジェットヘッダ.topRed'は良いですが、あなたは確かにありますか?それが '.topRed .ui-widget-header'なのか、そんなものではないでしょうか?ブラウザの開発者ツールで確認...簡単に – Kukeltje

答えて

0

スワップスタイル

関連する問題