【发布时间】:2017-02-10 06:35:15
【问题描述】:
我正在尝试像杂志文章一样显示所有博客文章。有关确切格式,请参阅下面的链接。
Single.php
<div class="container-fluid">
<div class="row-fluid">
<div class="col-xs-12 main-blog">
<?php
if(have_posts()):
while(have_posts()): the_post(); ?>
<?php the_title('<h1 class="entry-title">', '</h1>'); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?
<div class="article-single">
<p><?php the_content(); ?></p>
</article>
<?php endwhile;
endif;
?>
</div>
</div>
</div>
CSS
.article_single {
column-width: 150px;
-webkit-column-width: 150px;
-moz-column-width: 150px;
column-gap: 30px;
-webkit-column-gap: 30px;
-moz-column-gap: 30px;
font-family: Garamond;
column-count: 3;
}
无论我对内容做什么,都会调整图像的大小。如何在不弄乱图像的情况下显示内容?
【问题讨论】:
-
对特色图片以及 HTML 和 CSS 的 PHP 调用在哪里?
-
图片已通过仪表板手动插入到帖子中。我还没有尝试使用对特色图像的调用。 HTML 和 CSS 已发布在问题中。
标签: php html css wordpress posts