首页 > 解决方案 > Black space after HTML ends

问题描述

So , I have gotten a ticket from a client saying that he has some extra space after the footer end,i looked into it and it's true,basically,after the HTML ends there are a good few scrolls of plain black space. I tried giving the html doc a height of 100% and body a min-height:100% ,but it doesn't work.

标签: javascripthtmlcss

解决方案


似乎overflowdiv class="page-width"导致footer class="site-footer"此问题的原因。设置 css 属性overflow: hidden;以解决问题。

实施的变化:

.page-width {
    overflow: hidden;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 10px;
}

推荐阅读