有没有办法删除 :- http://getbootstrap.com/examples/sticky-footer-navbar/ 中页脚下方的空白区域?
我已经通过添加 {position:fixed;width:100%} 解决了这个问题,但它只适用于几页。对于其他页面,页脚根本不会出现。我也读过这个,但它似乎不起作用:Can't remove Whitespace at the bottom of my document .
谁能解释一下这里的错误是什么?
最佳答案
我曾经在使用 bootstrap 时遇到过同样的问题 我使用此 CSS 将页脚粘贴到页面底部:
*{
margin: 0;
}
.wrapper{
min-height: 100%;
height: auto !important;
height: 100%;
margin: 0 auto -0em;
}
.footer, .push{
height: 2em;
}
.footer, .push{
clear: both;
}
将所有内容放在包装器类中,并使用包装器下面的页脚类。 当我遇到这个问题时,我在某个地方找到了它并且它起作用了。
关于html - 删除页脚下方的空间?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20423071/