2011-02-10 96 views
1

可能重複:
How do you get the footer to stay at the bottom of a Web page?無法弄清楚CSS粘腳!

你好,

我不能讓我的頁腳堅持我的頁面的底部!我一直在嘗試的一切,我不能讓粘性html/css代碼工作

無論我做什麼,頁腳是偏移,或頁面的一半...我已經嘗試過3種不同的版本的代碼,使其堅持,沒有運氣

有人可以幫我嗎?如果有人能告訴我正確的編碼

我的網站是: http://graves-incorporated.com/test/index.html

的CSS: http://graves-incorporated.com/test/p7csslm/p7csslm10.css

感謝, 丹 [email protected]

回答

0

添加位置:固定你的頁腳通常會這樣做(然後設置底部:0)

這樣的事情:

#footer { 
    position: fixed; 
    bottom: 0; 
} 

更多信息,請訪問這個鏈接:

How do you get the footer to stay at the bottom of a Web page?

+0

position:fixed會將頁腳放在頁面的底部,但它也不會隨頁面的其餘部分一起滾動。這可能是丹想要的,但是關於鏈接問題的選擇答案似乎更有可能。 – mwcz 2011-02-10 07:22:15

+0

開始想起它我們應該將其標記爲重複 – corroded 2011-02-10 07:24:29