【问题标题】:Wordpress Header CSS IssueWordpress 标题 CSS 问题
【发布时间】:2014-11-03 15:14:23
【问题描述】:

我一直在以下网站 (http://tinyurl.com/lp5qtkc) 上工作,但我不知道如何删除标题和内容之间的空格。我曾尝试删除其上方的页面标题,但内容向上滑动并且内容框保持在同一位置。有什么想法吗?

【问题讨论】:

    标签: css wordpress header


    【解决方案1】:

    您需要将 .whitebackground CSS 类更改为

    .whitebackground {
        top: 190px; /* 100px less than what it was */
    }
    

    同时更新 JavaScript(在第 242 行的 templatesjs.php 文件中找到)以 500 毫秒的间隔执行,更新背景的高度,以便页面底部的内容正确呈现。

    setInterval(function() {
    
      jQuery('.tiledbackground').height(jQuery(document).height());
      jQuery('.whitebackground').height(main_cont.outerHeight()-39); // 100px more
    
    },500);
    

    【讨论】:

      【解决方案2】:

      有一个类名为“whitebackground”的 div,您可以使用它的位置来弥补两者之间的差距。

      像这样:

      .whitebackground{
          top: 190px;
      }
      

      请使用浏览器的检查元素选项来调试此类问题。

      【讨论】:

      • 完美运行。谢谢。
      猜你喜欢
      • 1970-01-01
      • 2020-06-17
      • 2016-05-04
      • 1970-01-01
      • 1970-01-01
      • 2019-12-21
      • 2019-07-25
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多