我有以下CSS位置在页面底部div。定位页面的div底部并保持以上内容
问:如何阻止内容在其下流动?
#footer {
position:fixed;
bottom:0;
background:url(../images/bg-footer.jpg) top;
z-index:200;
height:34px;
width:100%;
line-height:34px;
padding:0;
font-size:11px;
color:#fff;
}
我不能添加填充到身体或任何东西,因为我有一个适当的全屏背景图片按本教程:
http://css-tricks.com/how-to-resizeable-background-image/
不,现在试试吧。 – Andy 2010-03-27 17:04:06
这不起作用,因为当我开始滚动页面时,这也开始滚动。 – Andy 2010-03-27 17:05:25
感谢您的意见,但值得一试。 – Andy 2010-03-27 17:05:46