更新时间:2023-01-06 15:55:37
通常z-index
一起在我的带有滑块的项目中始终有效.不要忘记在滑块的之后呈现菜单,这样就迫使它位于顶部.
Usually position: absolute;
along with z-index
works always in my projects with sliders. Do not forget to render the menu after the slider so it is forced to sit on top.
这是我在Chrome中编辑HTML时所做的事情:
Here is what I did when I edited your HTML in Chrome:
<div class="main">
...
your slider code
...
</div>
<!--See the added inline styles -->
<div class="wrapper_menu menu_dark_theme" style="position: absolute; margin-top: -1200px; z-index: 9999;">
<ul class="menu menu_takeflight">...</ul>
</div>
查看所附的屏幕截图: