2016-04-01 7 views
-2

プライムフェイス3,5にはスティッキーがありません。私はmenubar用のカスタムスティッキーを作成する必要があります。ありがとうございました。プライムフェイス:プライムフェイスのメニューバーにスティッキーを作る方法3.5

*
+0

クライアント側では、すべてのHTML、CSSおよびJavaScriptです。だからその方向で解決策を探して... https://www.google.nl/search?q=how+can+I+make+a+div+sticky+in+html – Kukeltje

+0

ありがとう、私は作った。 – simyaci

+0

コードで自分で質問に答えることができます...してください – Kukeltje

答えて

0
<style type="text/css"> 
.fixedElement { 
    background-color: #c0c0c0; 
    position: fixed; 
    width: 97%; 
    z-index: 100; 
    height: 30px !important; 
    padding-bottom: 1px !important; 
    font-size: 20px !important; 
} 
</style> 

* * * * * *

<p:toolbar styleClass="fixedElement" >   
    <p:toolbarGroup align="left" > 
     <p:menubar model="#{xxxxxx.menuModel}" style="padding-bottom:2px !important ;padding-top:2px !important; height:20px; font-size:15px;"/> 
     <br/> 
    </p:toolbarGroup> 
</p:toolbar> 
関連する問題