使用PrimeFaces在IE8中下拉菜单错误

时间:2013-05-17 13:55:24

标签: internet-explorer internet-explorer-8 primefaces

我有一个带有primefaces的网站,它在导航中有一个下拉菜单。在Chrome,FF等中运行良好,但在IE(使用IE8测试)中,下拉菜单会在内容下展开。

Screenshot from the buggy Dropdown Menu
绿色:导航
蓝色:内容
红色:下拉菜单

我该如何修复这个错误?它必须在IE8中工作!

我已经尝试过:
添加在navigation.css以下声明中。

.ui-menu .ui-menu-parent .ui-menu-child{
   z-index:100;
}

1 个答案:

答案 0 :(得分:1)

我担心解决方案取决于你的html结构。绿色和蓝色元素在同一水平上吗?

尝试在绿色元素上增加z-index。 如果可能的话,尝试给出绿色元素position:relative;

相关问题