我希望我的页脚始终位于底部并移动以适应页面内内容的大小。现在我有覆盖页脚的动态内容,因为它有很多内容。
如何修复我的 CSS:
div#Footer {
width: 100%;
height: 80px;
padding: 1px;
-moz-border-radius: 35px;
border-radius: 35px;
background-color: Black;
color: #ffffff;
position: fixed;
bottom: 0;
text-align: center;
margin-left: auto;
margin-right: auto;
}
原文由 CsharpBeginner 发布,翻译遵循 CC BY-SA 4.0 许可协议
有点不清楚你想要什么,但这段代码对我来说效果很好。
信用 - http://css-tricks.com/snippets/css/fixed-footer/