css - Why don't the elements in the navbar darken like the rest of the page when opening modal? (bootstrap)
问题描述
Example: [redacted] - click the Get a Quote button. The navbar elements do not darken.
Also, resize your screen to emulate a phone screen, and you will see that the navbar elements overlap all other elements. How do I solve this as well?
Thanks in advance for any and all help.
解决方案
这是 z-index 的问题。您的类 .header 的 z-index 超过.modal
. 尝试给予
.header{z-index:1035;}
.
对于响应式或移动视图,您可以从和中指定.toggled{display:inline-block; width:100%;}
或删除高度。.header
.navbar
希望这可以帮助。如有查询,请告诉我。
推荐阅读
- vue.js - 当文件夹不可用时,如何让 gulp 暂停?
- npm - npm 动词堆栈错误:404 Not Found:error-inject@^1.0.0
- kubernetes - Kubernetes Helm 定义多行初始化容器命令
- msbuild - MSBuild:如何在定义自己的自定义属性时访问内置属性?
- ios - 如何实现 TextField 搜索栏以过滤表视图值 Swift
- java - org.springframework.jdbc.core.JdbcOperations.query(PreparedStatementCreator, ResultSetExtractor) 是否有可能返回关闭的 RowSet?
- google-cloud-storage - Apache Beam 可以检测 Spark 和 Pandas 等 Parquet 文件的模式(列名)吗?
- java - RabbitMQ 微服务 - 并行处理
- python - 从嵌套字典中提取匹配值
- swift - AwakeFromNib 没有被调用,单元格渲染但出口为零