【问题标题】:White empty space under content and above footer内容下方和页脚上方的空白区域
【发布时间】:2017-03-11 02:55:00
【问题描述】:

我的内容下有这么大的空白空间,我似乎无法找到它的来源。我必须强调我在代码方面不是很有经验,我正在使用 WordPress 和一个子主题,我花了很多时间试图从父主题中找到文件并找出在哪里进行调整。所以请尽量做到万无一失。

我真的希望任何人都可以帮助我!

http://marthapukallus.com/

Example of the problem: Massive white space under content

【问题讨论】:

  • 欢迎来到 Stack Overflow!寻求代码帮助的问题必须包含在问题本身最好是在堆栈片段中重现它所需的最短代码。尽管您提供了一个链接,但如果它变得无效,那么您的问题对于未来遇到同样问题的其他 SO 用户将毫无价值。见Something in my website doesn't work can I just paste a link

标签: html css wordpress footer


【解决方案1】:

我认为这是你的罪魁祸首?

.site {
    padding: 90px 20px;
    padding: 9rem 2rem;
}

【讨论】:

  • 不是:)。这是.gallery
  • 请避免回答低质量的问题。 Stackoverflow 有一些规则,您应该在网站上的任何活动之前阅读这些规则
【解决方案2】:

你的罪魁祸首是这一行:

<ul class="gallery gallery-animated"> <!-- --></ul>

删除它时,空白消失。 更具体地说:

.gallery {
    display: inline-block;
    width: auto;
    height: 100%; // This one removes the whitespace.
    margin: 0;
    list-style-type: none;
}

【讨论】:

  • 请避免回答低质量的问题。 Stackoverflow 有一些规则,您应该在网站上的任何活动之前阅读这些规则
  • @Trix 想不同意低质量,OP在这个问题上付出了一些的努力,发现这里的实际问题一点也不明显,尤其是如果您对该主题知之甚少。
【解决方案3】:
.gallery {
    display: inline-block;
    width: auto;
    height: auto;
    margin: 0;
    list-style-type: none;
}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-02-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-03-05
    • 2019-07-04
    • 2014-10-19
    相关资源
    最近更新 更多