首页 > 解决方案 > 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.

标签: csstwitter-bootstrapbootstrap-modal

解决方案


这是 z-index 的问题。您的类 .header 的 z-index 超过.modal. 尝试给予

.header{z-index:1035;}.

对于响应式或移动视图,您可以从和中指定.toggled{display:inline-block; width:100%;}或删除高度。.header.navbar

希望这可以帮助。如有查询,请告诉我。


推荐阅读