【发布时间】:2017-02-09 16:31:35
【问题描述】:
好的,伙计们,我有一个博客文章循环,其中每页限制为 6 个,它们与“col-md-6”并排排列,每行两个。然而,有些帖子的标题在一行,而另一些则在两行,因此一个比另一个大,当这种情况发生时,布局就会被破坏,如图所示
盒子代码
<div class="col-md-6 col-sm-12 blog-padding-right">
<div class="single-blog two-column">
<div class="post-thumb">
<a href="<?php the_permalink(); ?>"><div class="div-bg-capa" style="background:url(<?php the_post_thumbnail_url( 'large' ); ?>);width: 100%;height: 200px;margin: 12px 0;background-size: cover;background-position: center;"></div></a>
</div>
<div class="post-content overflow">
<h2 class="post-title bold"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<p>
<?php echo excerpt('20'); ?>
</p>
<a href="<?php the_permalink(); ?>" class="read-more">Ver mais</a>
</div>
</div>
</div>
css 中是否有一些技巧或使用引导程序本身使其保持这种状态?
【问题讨论】: