0
flex
を使用して行内の行のスタイリングに問題があります。 flex
以来CSSフレックス:行内の行
.row, [class*='col-'] {
\t display: flex;
\t flex-direction: row;
}
.col-6 {
\t flex-basis: 50%;
\t max-width: 50%; \t
}
<div class="row">
\t <div class="col-6" style="background-color:red;">
\t \t
\t \t <div class="row">
\t \t \t
\t \t \t <div class="col-6" style="background-color:green;">
\t \t \t \t should be 25%
\t \t \t </div>
\t \t \t
\t \t \t <div class="col-6" style="background-color:blue;">
\t \t \t \t another 25%
\t \t \t </div>
\t \t \t
\t \t </div>
\t
\t </div>
\t
\t <div class="col-6" style="background-color:gray;">
\t \t Right half
\t </div>
</div> <!-- /.row -->
<p>The red background should not be seen, since the green and blue should each take up 50% of the red's space...</p>
ああ、大丈夫、素敵。ありがとうございました。私はあなたが行を指定し続けなければならないテーブルスタイルのレイアウトにとても慣れています。 – JROB