When does flex-grow switch to flex-shrink, and vice-versa?
问题 I don't understand what makes flex items switch from grow to shrink behavior? At first I thought it is the flex-basis value, but what if only one item has it, or none? Also, the specs on flex-basis say: The flex-basis CSS property specifies the flex basis which is the initial main size of a flex item. What does that mean? If I have one item with it, and the rest are default, why is it usually starts a little bigger than the value? Where does the added space come from? 回答1: The flex-basis