html - 删除页脚下方的空间?

标签 html css twitter-bootstrap

有没有办法删除 :- 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/

相关文章:

javascript - 基础选项卡其中一个无法正常工作

html - CSS ASP :menu floating

html - 为 Internet Explorer 8 中的所有非多选标签设置 css 属性

javascript - TypeScript 2.4.1 -> fontWeight -> 类型 'number' 不可分配给类型 '"inherit"| 400 |

javascript - 在 Bootstrap 模式内的 Laravel 中表单提交

jquery - Google+1 在另一行而不是与其他社交图标内联。有任何想法吗?

html - 有没有办法在 rails/web/html5 上使用 ruby​​ 在 mp4 中录制音频

javascript - 如何让等待屏幕在具有 CSS 样式时显示加载

html - 如何使容器 <p> 标签的宽度与它包含的 <span> 的宽度相匹配?

html - 屏幕图像内的 Bootstrap 轮播