css - 如何防止 notificationBar 在布局 PrimeFaces 5.1 中被屏蔽?

标签 css jsf primefaces primefaces-extensions

大家好,我有一个问题,notificationBar 组件被隐藏了,因为绝对位置会添加到我的菜单右侧。

注意到 notificationBar,显示在包含我的左侧菜单布局下方,发生的事情是我必须添加样式位置绝对我的菜单,因为菜单显示在布局的中心。

.ui-layout-west {
    z-index: 20 !important;
    overflow: visible !important;
}

.ui-layout-west .ui-layout-unit-content {
    overflow: visible !important;
}

我的组件p:notificationBar

<p:notificationBar position="top" effect="slide" widgetVar="barMensajes" >
        <h:outputText value="Mensajes del Sistema:" styleClass="clsEncabezadoPantalla" />
        <p:messages id="messagesPrincipalForm" showDetail="true" globalOnly="true" closable="true" escape="false" />
        <p:commandButton value="Hide" onclick="PF('barMensajes').hide()"
                         type="button" icon="ui-icon-arrow-1-n" />
    </p:notificationBar>

最佳答案

你好 friend ,找到了我的问题的解决方案,现在我只需要看到属性不起作用:background-color:white!重要;

.ui-notificationbar {
    border-bottom: 1px solid #F8F7F6;
    border-bottom: 1px solid #0A2967;
    opacity: 0.95;
    filter: alpha(opacity = 95); /* For IE8 and earlier */
    z-index: 999; 
}

enter image description here

关于css - 如何防止 notificationBar 在布局 PrimeFaces 5.1 中被屏蔽?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28258773/

相关文章:

html - 隐藏可见性的元素会导致空白

jsf - PrimeFaces 对话框延迟加载(动态 ="true")不起作用?

javascript - 克隆带有所有嵌套元素的 div 以及纯 javascript 中的事件

webkit - 如何防止 CSS3 文本阴影遮盖相邻的字母?

css - 是否需要将导航(ul 标签)包装在 div 或 nav 标签中?

html - 让标签转到右边?

jsf - 使用@EJB 时,每个托管bean 是否都有自己的@EJB 实例?

JSF 页面使用 https 重定向然后它会在 mozilla 中给出 ssl 过期错误

javascript - 使用 jQuery 更新对话框标题

jsf - 无法使用 PrimeFaces7.0 在 Chartjs 中隐藏图例