我有一个1 x 70像素的页脚,它被设置为背景和水平贴图。如何使页脚垂直拉伸?
在网页上不包含大量内容的情况下,它会在页脚应该在的位置显示页脚。我希望它用纯色填充,所以如果向下滚动,它不会显示页脚,然后显示页脚下的白色。
这是我对于页脚的风格。
.footer{
background:#055830 url('/images/footer_tile.gif') repeat-x top left;
color:#fff;
font-size:12px;
height: 70px;
margin-top: 10px;
font-family: Arial, Verdana, sans-serif;
width:100%;
}
alt text http://i34.tinypic.com/2q9xk02.jpg
我想页脚看起来像这样: alt text http://i37.tinypic.com/2ng4ew9.jpg
body { \t background-color:#005130; } 谢谢。 – Brad 2008-10-16 18:31:00