我一直在以下站点 ( http://tinyurl.com/lp5qtkc ) 上工作,但我不知道如何删除页眉和内容之间的空格。我尝试删除其上方的页面标题,但内容向上滑动并且内容框保持在同一位置。有什么想法吗?
最佳答案
您需要将 .whitebackground CSS 类更改为
.whitebackground {
top: 190px; /* 100px less than what it was */
}
同时更新以 500 毫秒为间隔执行的 JavaScript(位于 templatesjs.php 文件中的第 242 行),更新背景的高度,以便页面底部的内容正确呈现。
setInterval(function() {
jQuery('.tiledbackground').height(jQuery(document).height());
jQuery('.whitebackground').height(main_cont.outerHeight()-39); // 100px more
},500);
关于css - Wordpress 标题 CSS 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25757501/