【问题标题】:Primefaces: how can make sticky for menubar in primefaces 3.5Primefaces:如何在 primefaces 3.5 中为菜单栏设置粘性
【发布时间】:2016-04-01 13:23:04
【问题描述】:

Primefaces 3,5 中没有粘性。我需要为菜单栏创建自定义粘性。谢谢。

【问题讨论】:

标签: layout primefaces sticky menubar


【解决方案1】:
<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>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-01-23
    • 1970-01-01
    • 1970-01-01
    • 2013-11-09
    • 1970-01-01
    • 1970-01-01
    • 2012-05-11
    • 2016-01-14
    相关资源
    最近更新 更多