無論內容中有多少文字,我都試圖將頁腳留在底部。 我在做什麼錯?佈局是:頁腳底部中間文字
.top{
width:500px;
height:100px;
background-color:black;
}
.content{
width:500px;
min-height:100%;
position:relative;
}
.footer{
width:500px;
height:100px;
background-color:blue;
position:absolute;
bottom:0;
}
<div class="top"></div>
<div class="content"></div>
<div class="footer"></div>
的問候,西蒙
可能重複http://stackoverflow.com/questions/42294 /如何獲得頁腳底部的頁腳) – 2013-02-20 15:33:14
可能的重複[如何讓頁腳始終位於頁面底部頁面?](http://stackoverflow.com/questions/14960467/how-to-keep-footer-always-at-the-bottom-of-a-page) – Win 2013-02-20 16:17:30