我在頁面內容包裝(其他所有內容)之外做了一個頁腳包裝。我想使頁腳擴展以填充頁面的寬度,我希望它固定在底部。下面的代碼:將頁腳擴展爲頁面寬度
footerWrap {
background-color:#000;
width: auto;
}
頁腳{
margin: auto;
text-align:center;
width:965px;
height:150px;
background-color:#000;
border:#000 inset medium;
}
該網站是item9andthemadhatters.com請讓我知道如果你需要任何其他代碼或信息。謝謝!!
更新:
HTML { 填充:0; 身高:100%; 寬度:100%; }
body { margin:-1px 0 0 0; background-color:#FFF; font-family:calibri; background-image:url(images/item9HeaderSideFiller.gif); background-repeat:repeat-x; 填充:0; 身高:100%; 寬度:100%; }
渦卷{
width: 965px;
margin:auto auto;
min-height:462px;
max-height:4000
PX;
footerWrap {
background-color:#000;
position:absolute;
bottom:0;
width:100%
}
頁腳{
margin: auto;
text-align:center;
width:965px;
height:150px;
background-color:#000;
}
}
#footerWrap { \t background-color:#000; \t position:absolute; \t bottom:0; \t寬度:100% \t } #footer的{ \t餘量:汽車; \t text-align:center; \t width:965px; \t height:150px; \t background-color:#000; } – hawkeye126 2011-01-13 21:48:19
html { \t padding:0; \t身高:100%; \t寬度:100%; } body { \t margin:-1px 0 0 0; \t background-color:#FFF; \t font-family:calibri; \t background-image:url(images/item9HeaderSideFiller.gif); \t background-repeat:repeat-x; \t padding:0; \t身高:100%; \t寬度:100%; } #wrap { \t width:965px; \t margin:auto auto; \t min-height:462px; \t max-height:4000px; } – hawkeye126 2011-01-13 21:48:37