2011-04-04 54 views

回答

0

我建議把邊界上基於該方法的「包裝」的div這裏CSS layout: 100% height with header and footer

編輯:從內容

移動邊界爲包裝 對於包裝

#wrapper { 
    border-left: 1px solid #000000; 
    border-right: 1px solid #000000; 
    margin: 174px auto 0; 
    min-height: 100%; 
    width: 870px; 
} 

爲標題

#header { 
    border-top: 0 solid #FFFFFF; 
    height: 174px; 
    position: relative; 
    top: -174px; 
    width: 100%; 
} 
+0

我也儘管相同,但隨後邊框將顯示在頁眉和頁腳... – billy 2011-04-04 15:40:00

+0

我不認爲它會顯示在頁腳,併爲標題嘗試給頭一個填充: 0 -1px;樣式來覆蓋左側和右側的包裝邊界。編輯:我錯了關於頭:(這是不同的佈局,比我想象的 – 2011-04-04 15:43:33

+0

這是干擾粘性頁腳方法 – billy 2011-04-04 16:05:53