作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
页面的内容在位于页脚顶部的另一个 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>
最佳答案
如果你想要任何div,固定只是分配一个固定的高度..和固定布局的div,改变..向div添加一个样式属性并添加propery scroll to be scroll.然后当div 的元素多于它的高度,然后会出现一个滚动条,这将帮助你修复你的布局..希望你得到你的答案..
关于html - 页面内容进入另一个位于页脚上的 div,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30418986/
我是一名优秀的程序员,十分优秀!