【问题标题】:CSS to get rid of white space in Wordpress Twenty Nineteen theme?CSS 摆脱 Wordpress 29 主题中的空白?
【发布时间】:2020-02-01 06:29:07
【问题描述】:

我在www.risingtidescoffeecompany.com/home/ 的页面在导航栏下方/大滑块上方有一个空白区域。

我正在尝试弄清楚如何删除该空白,使标头下方的滑块与导航栏齐平。我已经使用 CSS 隐藏了条目标题,并尝试了一些在 Google 上找到的建议,但没有任何效果。

【问题讨论】:

    标签: css wordpress wordpress-theming themes


    【解决方案1】:

    从检查员看来,您的问题是以下 css 施加的上边距(第 5196 行)

    /* Blocks */
    /* !Block styles */
    .entry .entry-content > *,
    .entry .entry-summary > * {
      margin: 32px 0;
      max-width: 100%;
    }
    

    它在媒体查询中重新出现,(第 5217 行)

    @media only screen and (min-width: 768px) {
      .entry .entry-content > *,
      .entry .entry-summary > * {
        margin: 32px 0;
      }
    }
    

    在你提到的主题themes/twentynineteen/style.css?ver=1.4

    如果两条 css 行都被停用,间隙就会消失,在 chrome 中进行测试。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-05-31
      • 2014-03-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多