它很难解释,当我搜索不存在的东西时,我面临一个奇怪的填充/边距问题,并检查了代码,无法找到任何东西。在页脚之后似乎有一个奇怪的30pxish边距,甚至不应该在内容div中。
<div class="post">
<div class="content">
<p>Sorry, no match found!</p>
</div>
</div>
<?php
get_footer();
?>
网址:http://s1527.mtchs.org/wordpress/?s=this+is+an+example+of+a+search+that+doesnt+exist
答案 0 :(得分:1)
你还有一些无效的HTML,你打开了几个div标签,但没有关闭,这可能会让你的CSS搞砸了,我建议你定期检查你的代码{{3 }}
答案 1 :(得分:0)
“页脚之后”是#postcont
元素的闭包,其中定义了20px填充。
因此,看起来你的css没有产生任何异常,因为它被定义并按预期显示。