Laravel の Blade ビューに次のコードがあります。
@foreach ($questions as $question)
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4">
@if(isset($question->task))
<a href="{{URL::action('showTask', $question->task_id)}}"><h4> <span class='glyphicon glyphicon-file'></span> {{$question->Task->name}}</h4></a>
@endif
<blockquote >
<a class="nostyle" href="{{URL::action('showQuestion',$question->id)}}" ><p
@if($question->status==1)
class="text-success"
@endif
>{{$question->text}}</p></a>
<footer>Gevraagd door <strong>{{$question->Author->getFullName('mij') }}</strong> op <strong>{{DateConverter::dateToString($question->created_at)}}</strong></footer>
@if($question->status==1)
<span class="label label-success">Beantwoord</span>
@endif
</blockquote>
</div>
@endforeach
すべての質問を表示しています。それらを3 の素敵な行に表示したい. ただし、一部のテキスト ( $question->text ) は他のテキストよりも長いため、常に完全に新しい行を開始するとは限りませんが、スクリーンショットでわかるように、以前の最も短いグリッドに追加されます。
私が望むのは、テーブル、3 つの列、そして 3 つの新しいアイテムを含む同じ高さの新しい行のようなものです。
だから私は方法を探しています
すべての列を同じ高さで返す
または、3 つの列ごとに行 div を自動的に追加して閉じます。
これを行う最良の方法は何ですか?