同じ高さと等しい幅の列を設定する必要があります。私はこれと同じ高さの面ではうまく動作しますが、同じ幅になるとうまくいかない場合は、CSSのプロパティ表示の表セルを使用しています。私は技術的にはうまくいきますが、同じ幅にしたいと思っています。したがって、1つのテーブルに4つの列または1つの列があるかどうかは、1つの幅が必要です。cssで同じ幅と高さの列
私もフレックスを探しましたが、IE9にはそのサポートはなく、モバイルブラウザとの互換性に問題があります。私は考えて、それを多くの方法を試みたが、解決策を得ていない。あなたが手を入れたい場合はfiddleです。
HTML
.table {
display: table;
width: 100%;
height: 100%
}
.cell {
display: table-cell;
padding: 0 10px;
width: 23.8%;
height: 100%
}
.white-box {
border: solid 1px #ccc;
background: #eee;
height: 100%
}
<div class="table">
<div class="cell">
<div class="white-box">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</div>
</div>
<div class="cell">
<div class="white-box">Lorem Ipsum is simply dummy text of the printing and typesetting industry.</div>
</div>
<div class="cell">
<div class="white-box">Lorem Ipsum is simply dummy text of the printing and typesetting industry.</div>
</div>
<div class="cell">
<div class="white-box">Lorem Ipsum is simply dummy text of the printing and typesetting industry.</div>
</div>
</div>
<br>
<div class="table">
<div class="cell">
<div class="white-box">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</div>
</div>
<div class="cell">
<div class="white-box">Lorem Ipsum is simply dummy text of the printing and typesetting industry.</div>
</div>
</div>
あなたは合計でいくつのdivを知っていますか? – Bojan
私は重複した質問とは思わない。 – Carlos
あなたのフィドルは間違っていますか? –