我正在爲我設計的兩個網站使用Less Framework 4。在這兩種設計中,我都希望在文檔的頂部和底部應用5像素邊框。如何在HTML和CSS中使用html對象編寫粘性頁腳?
的問題:由於應用到體的風格,我在申請的下邊框和邊框頂到HTML對象,所以底部邊框永遠堅持喜歡它的頁面底部會在通常的粘性頁腳情況下發生。
Belgian client http://f.cl.ly/items/2X2B0R2f053N0h1T1j3Q/prikonline.png
下面是我使用HTML和身體(LESS)CSS:pastie.org/private/us5x1vhjnwzq6zsiycnu2g
html {
border-top: solid @black 10px;
border-bottom: solid @black 10px;
background: url('img/bg.png') repeat;
}
body {
width: @8col;
margin: 0px auto;
padding: 100px 48px 84px;
background: @white;
color: rgb(60,60,60);
-webkit-text-size-adjust: 100%; /* Stops Mobile Safari from auto-adjusting font-sizes */
font: 13px/20px 'OftenRegular';
-webkit-tap-highlight-color: @green;
}
我試過body
和html
這兩個物體都使用height: 100%
,但下面是它的外觀:http://prikonline.be/prikactie/
我應該如何將邊框粘貼到頁面的底部?
á,請閱讀[標記幫助頁面](http://stackoverflow.com/editing-help/),瞭解如何使代碼和圖像與您的問題/答案一致。 – 2011-06-05 10:01:19
是的,但是我沒有對您提交給我的文本進行的大部分修改的權限。不管怎麼說,還是要謝謝你! – 2011-06-05 11:54:14