#pagecs { font-family: 'Goudy Bookletter 1911', serif; colo-6ren">
gpt4 book ai didi

html - 文本不会在 wordpress 帖子中包装图像

转载 作者:行者123 更新时间:2023-11-28 12:13:08 25 4
gpt4 key购买 nike

它有一个非常基本的代码,我确定我遗漏了一些东西。这是什么?

<div class="span8" id="pagecs">
<?php the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="entry-content">
<?php
if ( has_post_thumbnail() ) {
the_post_thumbnail();
}
?>
<?php the_content(); ?>
</div>
</div>

#pagecs {
font-family: 'Goudy Bookletter 1911', serif;
color: #405160;
}

最佳答案

正如 Stefan 在评论中所说,您缺少 css float ,例如:

#pagecs .entry-content img {
float:left;
}

将图像左对齐..并且为了更好的测量,如果需要,您可以在其上放置一些边距以留出间距

关于html - 文本不会在 wordpress 帖子中包装图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19369285/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com