页面的内容进入位于页脚顶部的另一个div。有人可以帮我知道如何使固定div位于页脚顶部,页面内容应该是可滚动的
<body>
<header class="container-fluid">
</header>
<div id="fixWidth">
<h1>hi how are u</h1>
<h1>hi how are u</h1>
<h1>hi how are u</h1>
<h1>hi how are u</h1>
<h1>hi how are u</h1>
<h1>hi how are u</h1>
<h1>hi how are u</h1>
<h1>hi how are u</h1><h1>hi how are u</h1>
</div>
<div class="footer navbar-fixed-bottom">
<div class="container-fluid">
<h4>This part of content Content should be fixed</h4>
</div>
<footer class="container-fluid">
<div class="content">
<p>@copyright</p>
</div>
</footer>
</div>
</body>
答案 0 :(得分:0)
如果你想要任何div,修复只需指定一个固定的高度...和固定布局的div,更改..添加一个样式属性到div并添加propery滚动滚动。然后当div有更多的元素而不是它的高度然后会出现一个滚动,这将有助于你修复你的布局..希望你得到你的答案..