【问题标题】:White bootstrap navbar turning transparent over paragraph白色引导导航栏在段落上变为透明
【发布时间】:2015-06-28 23:48:41
【问题描述】:
【问题讨论】:
标签:
jquery
css
twitter-bootstrap
navbar
rgba
【解决方案1】:
CSS 中的 z-index 属性控制重叠元素的垂直堆叠顺序。此属性没有固定值,但您可以使用更高的值将元素堆叠在其他元素的顶部。下面的 css 也可以。
#header {
z-index: 9;
}
【解决方案2】:
这不是透明度问题。这是分层问题。将此添加到您的 css 文件中:
#header {
z-index: 90;
}
【解决方案3】:
Actually reason was div and tags overlapping the header you added the z-index property in the **#myNav.affix** there should add **postion:relative** property then remove the **z-index** and **postion:relative** form the <p> tag and bootsrap classes also like col-md-5, because these classes having **postion-realtive** for your reqiurement these are not needed so remove it .am checked itz works fine hope itz works you too .(Y)Try It