jquery - 固定标题在视差图像上消失
问题描述
我在这里有这个网站http://new.sekanskin.com/what-we-do/正如你所看到的,我有多个视差图像和一个固定的导航栏,当我开始滚动时,我看到固定的导航栏没有越过视差,但在它后面。
我尝试将 z-index 添加到导航栏,因为我必须将 z-index 添加到视差图像才能使其显示,但是将 z-index 添加到导航栏没有任何作用。
CSS
.parallax-window, .parallax-window-2, .parallax-window-3, .parallax-window-4, .parallax-window-5, .parallax-window-6, .parallax-window-7{
min-height: 600px;
background: transparent;
}
.parallax-mirror {
z-index:10000 !important;
}
.eltdf-page-header .eltdf-fixed-wrapper.fixed {
position: fixed;
top: 0;
left: 0;
width: 100%;
-webkit-backface-visibility: hidden;
z-index:100000 !important;
}
解决方案
您需要设置 div 的位置。在您的 style.css 中添加以下 css
.eltdf-side-menu-slide-from-right .eltdf-wrapper, .eltdf-content {
position: inherit !important;
}
.eltdf-page-header {
z-index: 11000 !important;
}
推荐阅读
- ios - 我想为 iMessage 创建一个贴纸应用程序?
- visual-studio-code - VsCode 删除 Ctrl+S 后的“tab”
- python-3.x - 使用对象动态构建列表
- jenkins - 我无法远程访问詹金斯
- javascript - Three.JS - 自定义网格上的光线投射
- sql - Django 将图像数据保存到数据库
- c# - 处理作为参数传递给函数的 Action 引发的异常的方法
- java - 如何将简单方法转换为递归方法?
- javascript - 在提交第二个请求之前从先前的 AJAX 查询中卸载或清空数据
- excel-formula - 带有条件的 Excel 数组公式