简体   繁体   中英

Menus are hiding behind Slider

I have a site in Bootstrap 3 here http://213.239.217.181/carboot/

I may get downvotes because people will say what have you tried or show us the code you have tried

But its been a whole day I am struggling with this issue.

On iPhone 5 , when you open menus with Toggle button, some menus are hidden behind the slider image, but they should not!

Slider is inside <section id="slider"> and I have tried every possible thing but cannot figure out how to solve my issue.

显示不好

This is how it should be displaying.

正确显示

Update your Bootstrap framework to latest.Because this may occur in deprecated framework. Mostly problem with responsive menu. I have same issue with responsive menu and it is not working in mobile devices. Same issue with your current problem.

The issue is that your bootstrap theme set a max-height to the nav-bar element, inside a media query, and this trim the menù:

.navbar-collapse { max-height :340px }

Override it in your CSS, just like i've done in Chrome Dev Tool :

Chrome Dev Tool中的解决方案

You just need to do this:

.navbar-collapse { max-height: none;}

Hope this helps :)

Try by giving css Z-index property to say 999 to your menu container id.For ex:

Html Code:

<ul id="menu">
<li></li>
<li></li>

Css:

#menu{
z-index:999;

}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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