[英]drop down menu stays hidden behind the slider
I have a web site http://www.jccaspen.com/templates/section_cdo/aid/2644906/jewish/Ski-to-Live.htm , there is a drop down menu for About Us tab, but when you hover on drop down , it displays behind the image slider (you can see menu if you click on the About Us tab and hover over it) 我有一个网站http://www.jccaspen.com/templates/section_cdo/aid/2644906/jewish/Ski-to-Live.htm ,“关于我们”选项卡有一个下拉菜单,但是当您将鼠标悬停在下拉菜单上时向下 ,它将显示在图像滑块的后面(如果单击“关于我们”选项卡并将其悬停在菜单上,则可以看到菜单)
I know the problem is with the slider, with images in particular. 我知道问题出在滑块上,尤其是图像。 I tried changing overflow to visible, but it gives no effect. 我尝试将溢出更改为可见,但是没有任何效果。 Please help 请帮忙
Set to this class .bannercontainer
z-index:1
设置为此类.bannercontainer
z-index:1
.bannercontainer {
position: relative;
margin: 0 auto;
padding: 15px;
background-color: #000;
max-width: 1140px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
z-index: 1; /*Add this */
}
You need to give the menu a higher z-index than the slider. 您需要为菜单提供比滑块更高的z索引。 It also has to be positioned for it to work. 它也必须定位才能工作。
Add this and it should work: 添加它,它应该可以工作:
div#chabad_head .chabad_navigator_bar {
position: relative;
z-index: 3;
}
Do the following change in your code. 在您的代码中进行以下更改。 It will work for you. 它将为您工作。 I have tested it myself. 我自己测试过。 It is the problem of z-index . 这是z-index问题。
<div class="chabad_menu_content" style="z-index: 10000">
.
.
.
.
</div>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.