简体   繁体   English

导航栏和 slider 层难度

[英]Navbar and slider layers difficulty

I'm having difficulty getting a navbar and a slider to work together.我很难让导航栏和 slider 一起工作。 The problem is when it is in mobile view.问题是当它在移动视图中时。 If you click on the menu icon the menu item slide in from the side but the top ones are appearing stacked underneath the slideshow.如果单击菜单图标,菜单项会从侧面滑入,但顶部的项会堆叠在幻灯片下方。

Here is a sample of it posted on my domain test page.这是发布在我的域测试页面上的示例。 http://ecfleming.com/test/index.html http://ecfleming.com/test/index.html

I have tried using a z-index in the CSS as well as few other things.我尝试在 CSS 以及其他一些东西中使用z-index I suspect it might be something in the JavaScript, but I can not figure out what.我怀疑它可能是 JavaScript 中的东西,但我不知道是什么。 Does anyone have any ideas of what I can try to fix this?有人对我可以尝试解决的问题有任何想法吗?

For a quick fix, you can add .cycle-slideshow { z-index:-1 }为了快速修复,您可以添加.cycle-slideshow { z-index:-1 }

Try not to hard code the height value of div id="header"尽量不要硬编码 div id="header" 的高度值

Fix the mobile view by removing the height 185px.通过删除高度 185px 来修复移动视图。

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

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