16. flex layout 1
分享给更多人
-通过 / -执行
Suppose we have to layout a bunch of items with below requirements.
- fill out to width:100px, but stretch to fill the available space and shrink if not enough
- stack them if needed
HTML structure is
<div class="container">
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
</div>