html - 背景滤镜模糊不会覆盖在下面的所有元素上
问题描述
我正在努力理解为什么backdrop-filter: blur()
在叠加层中使用不会叠加并应用于它上面的所有元素。
在下面的屏幕截图中 - 覆盖在 div 上有效 - 但不适用于文本......什么条件会使背景覆盖在某些元素上而不是其他元素上?
以下是叠加样式:
.Nav-module_backdropOverlay__3EPp5 {
background-color: rgba(0,0,0,.1);
cursor: pointer;
height: 100%;
left: 0;
outline: pointer;
position: fixed;
top: 0;
visibility: visible;
width: 100%;
z-index: -10; // this z-index is set to position behind the top-nav bar - but above the main content.
// the parent z-index is 999;
-webkit-backdrop-filter: blur(8px);
backdrop-filter: blur(8px);
cursor: pointer;
opacity: 1;
visibility: visible;
}
解决方案
推荐阅读
- reporting-services - SSRS - 执行交替行颜色时忽略空值(在矩阵中)
- javascript - 将下拉菜单添加到 c3.js 条形图
- reactjs - 为什么 lang 参数没有从 getStaticPaths 传递给 getStaticProps?
- c# - 加载我的 vs 设计器时出错。不支持对码
- security - BIOS 更新程序在技术层面如何运作?
- node.js - nodejs 作为 WebRTC 服务器
- javascript - 从对象中获取属性名 | JavaScript
- python - LDAP 过滤器语法
- python - 如何跟踪带有返回函数的递归函数
- javascript - 我正在尝试使用 js 中的 map 函数在卡片组件中使用图像。除了图像之外的所有东西都工作正常