admin管理员组文章数量:1289539
So by default Wordpress include <p></p>
into the content.
My view source output:
<td class="ccontent">
<p>I would suggest choosing an easier method,<br />
This one is pretty difficult one.</p>
<p>Just a thought.</p>
</td>
On my website:
As you can see there's a weird space at the bottom.
When I include <?php the_title();?>
it aligns great.
But when I include <?php the_content();?>
the space appears.
I did an experiment and removed the <p>
from the content (using function filter).
Then it aligns great, but the content shows in a single line (which I don't want).
So I figured that <p></p>
is causing this problem.
Is there any way to fix this?
Desperatly need help.
UPDATE: Solved by removing some
code from my template style css file. Thanks for the hint, Joe!本文标签: htmlltpgtltpgt creates an unnecessary space in content
版权声明:本文标题:html - <p><p> creates an unnecessary space in content? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741415778a2377501.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论