我正在使用 bootstrap 3.0 框架,无论我做什么,我都无法让页脚后的小空白消失。它只在 Chrome 中显示,在 IE 中没问题。
我已经使用了 min-height, overflow:hidden,different margins
仍然没有。
http://www.bootply.com/XonUL6Vq2C
我敢肯定有一些简单的修复方法让我望而却步。但它让我抓狂。
谁能提供解决方案?
最佳答案
在您的 CSS 中,您为页脚的顶部和底部使用了 50 像素的 margin
。
移除页脚的边距。
如果您只想在页脚顶部应用边距,请使用:
footer {
margin: 50px 0 0 0; /* or just use: margin-top: 50px;*/
}
关于html - 摆脱页脚下方的空白,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24796639/