3列の行が必要です。列の1つの内部のテキストの長さ/サイズに応じて、3列すべてが同じ高さになる必要があります。したがって、3列の高さは同じで、最大のサイズの列を考慮して同じ行にある必要があります。テキストに応じた列の高さ
これは私が取得エラーです:これは私が持っているコードです
:
<?php// Define our WP Query Parameters ?>
<?php $the_query = new WP_Query('posts_per_page=3'); ?>
<?php// Start our WP Query ?>
<?php while ($the_query -> have_posts()) : $the_query -> the_post(); ?>
<div class="col-sm-6 col-md-3">
<div class="thumbnail"><a href="<?php the_permalink() ?>"><?php the_post_thumbnail(array(100, 100)); ?></a>
<div class="caption">
<?php// Display the Post Title with Hyperlink?>
<h3 class="center"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h3>
<!--// Repeat the process and reset once it hits the limit-->
</div>
</div>
</div>
<?php
endwhile;
wp_reset_postdata();
?>
そして、これはCSSです:
div.caption{
text-align: center;
}
div.thumbnail{
border: 4px inset black;
height: 200px;
}
h3.center{
font-size: 20px;
}
この質問をチェックする:http://stackoverflow.com/questions/19695784/how-can-i-make-bootstrap-columns-all-the-same-height – Asher
こんにちは、私はそのポストも見ましたがどちらも解決策の中で問題を解決しました。 一部は列を均等に分散していないものもあれば、単に機能しなかったものもあります。 – FilT