flex layout 1
2022年5月1日小于 1 分钟
flex layout 1
Question
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>