【发布时间】:2018-03-01 17:14:38
【问题描述】:
我想动态地将页脚放在底部页面中。
页脚必须固定在底部
如果页面中有更多数据,页脚必须自动放置在下方。
html {
position: relative;
min-height: 100%;
}
body {
padding-top: 60px;
margin-bottom: 75px;
}
footer {
position: absolute;
bottom: 0;
width: 90%;
height: 45px;
line-height: 45px;
}
<div id="container">
<div id="main">
</div>
<div id="footer">
<div class="container">
<span>Place sticky footer content here.</span>
</div>
</div>
</div>
【问题讨论】: