我有一个网页如下: http://www.transeeq.com/health/bq17a.html#
淡黄色的页脚不会一直被推到底部。有任何想法吗?这是 CSS 代码:
#container {
min-height:100%;
position:relative;
}
#body {
padding-bottom:60px; /* Height of the footer */
}
#footer {
position:absolute;
bottom:0;
width:100%;
height:60px; /* Height of the footer */
background:#CCCC66;
}
最佳答案
有效;您的 CSS 可能正在本地缓存。您最近强制浏览器刷新了吗?按 Ctrl+F5。
关于css - 为什么页脚不一直到底部?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2181755/