bootstrap里面navbar-fixed-top总是把下面div的内容遮住是怎么回事?
应该怎么解决呢?
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<a href="#" class="navbar-brand">Project Name</a>
</div>
</div>
</nav>
<div class="container">
<h1>你好</h1>
</div>
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<a href="#" class="navbar-brand">Project Name</a>
</div>
</div>
</nav>
<div class="container">
<h1>你好</h1>
</div>
因为navbar-fixed-top类定位了,position:fixed;top:0;,把它定位在浏览器的左上角了,所以肯定会遮挡。把position改了应该就好了。