css - 为什么页脚不一直到底部?

标签 css

我有一个网页如下: 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/

相关文章:

html - CSS Footer 100% 宽度添加滚动条

javascript - extjs 4.2.1 - 广播组 : add a radio button with a textbox

html - 如何在 Notepad++ 中查找/替换通配符搜索的一部分

javascript - 3 列布局自动中列宽度

jquery - 延迟加载无法设置可滚动 : {virtual: true} in Kendo Grid

css - 悬停后将光标放在输入字段中

jquery - 为什么粘性导航在 'sticks' 时会改变宽度?

javascript - 如何使用css和js制作被动波浪效果按钮

javascript - 通过滚动到页面的不同部分来更改导航

css - div 的棘手定位和大小调整