简体   繁体   English

z-index下拉不起作用?

[英]z-index drop down is not working?

The drop down z-index problem. 下拉z-index问题。 the drop down is not showing on the front on the image. 下拉菜单未显示在图像的正面。 here is the link for the site the drop down with Luke Carlose Name. 这是该站点链接,其中带有Luke Carlose Name下拉列表。

The issue is that you have overflow: hidden; 问题是您overflow: hidden; applied to the parent elements of the dropdown. 应用于下拉菜单的父元素。 Removing this from .holder , .wrapper and #header and it should respect the overflow once again. 从删除此.holder.wrapper#header ,它应该再次尊重溢出。

This seems your problem: 这似乎是您的问题:

#header .holder {
overflow: hidden;
}

Change overflow to visible and it should work. 将溢出更改为可见,它应该可以工作。

Please try it - this is css chenges 请尝试-这是CSS chenges

Add padding top in #nav 在#nav中添加填充顶部

 #nav{ padding-top: 66px; }

Replace This css 替换此CSS

#header .holder {
    float: right; 
    overflow: visible;
    padding-bottom: 15px;
    padding-left: 3px;
    padding-right: 207px;
    padding-top: 12px;
    position: absolute;
    right: 0; 
}

you need to change some css element i checked your site and replace this with old css 您需要更改一些CSS元素,我检查了您的网站,并将其替换为旧的CSS

.wrapper-dropdown-5
{
padding:0px 0px;//chnage padding in this class
}

.wrapper-dropdown-5 .dropdown
{
position:relative;//change position from this class
}

.wrapper-dropdown-5.active:after
{
margin-top:-3px;//add new one in this class
}

.wrapper-dropdown-5:after
{
top:12%;//replace this
margin-top:8px;
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM