【发布时间】:2016-04-29 09:19:35
【问题描述】:
我目前正在使用 bootstrap 开发 wordpress 主题,但我不知道在移动视图中如何在我的帖子上设置换行符。 我希望在预览图像的右侧至少有 4-5 个单词(目前它甚至在右侧显示单个单词,看起来很傻)
我的首页代码如下所示:
<div class="content">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="row"><!-- Row Start -->
<div class="col-xs-12">
<h1><?php the_title(); ?></h1>
</div>
<div class="col-xs-12">
<?php if ( has_post_thumbnail() )
echo '<div class="post_thumb">' . get_the_post_thumbnail(null, 'medium') . '</div>';
?>
<?php the_excerpt(); ?>
<a href="<?php the_permalink(); ?>">Weiter zum kompletten Beitrag</a>
</div>
</div>
<div class="row trenner">
<div class="col-xs-12"><hr></div>
</div>
<?php endwhile; ?>
<?php endif; ?>
</div>
谢谢!
【问题讨论】:
标签: css wordpress twitter-bootstrap line-breaks