我用下面的一段代码在浏览器底部对齐一个div股利在浏览器底部
CSS:
/* using the child selector to hide the
following body css from IE6 and earlier */
html>body {
background-color: yellow;
}
#footer {
position:absolute;
right:0;
bottom:0;
background-color:Yellow;
}
HTML:
<div id="footer">
CCC
</div>
这种运作良好,当页适合页面:
但是当页面长度超过然后,如果我滚动页面的股利也越来越顶部滚动显示:
我已经把页脚DIV顶部顶部用户控制。在页脚div之后还有其他一些控件。这会导致问题吗?
已在第一篇文章 – Techonthenet 2012-03-26 12:17:47