我正在試着讓我的頁腳下到頁面的末尾,以便粘到底部。沒有內容Div的Wordpress頁面上的CSS粘頁腳
我嘗試使用教程,我使用了CSS樣式,使頁腳粘底:
* { margin:0; padding:0; }
html, body, #wrap { height: 100%; }
body > #wrap {height: auto; min-height: 100%;}
#main { padding-bottom: 175px; } /* must be same height as the footer */
#footer {
position: relative;
margin-top: -175px; /* negative value of footer height */
height: 175px;
clear:both;}
/* CLEAR FIX*/
.clearfix:after {content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;}
.clearfix {display: inline-block;}
/* Hides from IE-mac \*/
* html .clearfix { height: 1%;}
.clearfix {display: block;}
/* End hide from IE-mac */
我試圖使這項工作現在幾個小時,可能有人請檢查我的問題?
在此先感謝
謝謝sooo!你救了我的一天;)那就是我正在尋找的! – Evils 2012-02-06 20:49:20