I'm afraid I must not understand flex-grow. If you jump to the JSFiddle below - the way I understand it, .big
should be three times the size of the other .flex-item
. As you can see, not so. Why?
http://jsfiddle.net/nrur6mmo/
.flex-container {
display:flex;
padding:0 20%;
}
.flex-item {
flex-grow:1;
list-style-type:none;
border:1px solid black;
}
.big {
flex-grow:3;
}
<ul class="flex-container">
<li class="flex-item big">Why isn't this exactly three times the size of the other one?</li>
<li class="flex-item">Not really working like expected I don't think...</li>
</ul>
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…