我正在使用下面给出的以下代码修复 header , header 也得到修复,但是当我减小浏览器窗口的大小时,浏览器窗口的滚动停止工作,我看不到全部内容。请提出任何建议。
div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
</div>
</div>
</div>
最佳答案
查看 Bootstrap 文档 ( http://getbootstrap.com/components/#navbar-fixed-top ),它说:
Body padding required The fixed navbar will overlay your other content, unless you add padding to the top of the
body
.
关于php - 当浏览器大小减小并且标题在使用 Bootstrap 时固定时滚动不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23310798/