我想頁腳(與ADRESS和社會圖標)是在頁面的底部,沒有額外的後(所以沒有向下滾動可能)粘頁腳CSS修復
我也希望它在真底部
正是這個頁面Working link
但是當內容不佔據整個頁面高度它是搞亂...... 喜歡這裏的工作完美:At the bottom BUT adding some scrolling at the bottom 我環顧四周,但似乎無法找到完美的解決方案,我需要你的知識
.sticky-footer-wrapper {
min-height:100%;
}
.push {
overflow:auto;
padding-bottom:200px;
}
footer {
position:relative;
margin-top:-200px;
height:30px;
clear:both;
}
HTML標記
<div class="sticky-footer-wrapper">
<div class="push"></div>
</div>
<footer></footer>
謝謝您的時間!
Typo? ' div':缺少'>' – biziclop
@ francoboy7會爲你定一個固定的頁腳嗎? –
@ Mr.Coder不,它不會工作。感謝回覆,雖然 – francoboy7