flex-shrink flex-wrap: nowrap (flex-wrap: nowrap).
, flex- , flex-shrink , ( ). .
(flex-wrap: wrap) , . , , , , , . . , flex-shrink ().
.
- div # 1 ~
flex: 1 0 200px - div # 2 ~
flex: 1 1 400px - div # 3 ~
flex: 1 0 200px
800 , .
800px, div # 3 ( , ).
600px ( div # 1 # 2) div # 2 . , .
#container {
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
div:nth-child(1) {
flex: 1 0 200px;
height: 200px;
background-color: lightgreen;
}
div:nth-child(2) {
flex: 1 1 400px;
height: 200px;
background-color: lightyellow;
}
div:nth-child(3) {
flex: 1 0 200px;
height: 200px;
background-color: lightblue;
}
<div id="container">
<div></div>
<div></div>
<div></div>
</div>
:
flex-shrink
[ ] , , .