1
私はフルサイズになるクラス.primary
とflex-flow: column nowrap;
の親要素を持っています。flex-flowを持つ子要素のflex-basisが垂直に適用される理由:row nowrap?
次に、flex-flow: row nowrap;
を適用するクラス.aaa
の子要素を設定し、子孫を0に設定し、1に縮小し、flexベースを10rem
に設定しました。
しかし、それはflex-flow: row nowrap;
ですが、flex-basis
は、x-axis
の代わりにy-axis
に適用されます。どうして ?
.primary {
display: flex;
flex-flow: column nowrap;
flex: 1 1 auto;
background: green;
}
.aaa {
display: flex;
flex-flow: row nowrap;
flex: 0 1 10rem;
background: red;
}
<div class="primary">
<div class="aaa">
<article>
article
</article>
<aside>
aside
</aside>
</div>
</div>