<html>
<div class="all">
<div class="item"></div>
<div class="item"></div>
<div class="item" style="margin:0"></div>
</div>
<style>
.all{
padding:0.3rem;
height:2.4rem;
display:flex;
margin-bottom:0.2rem;
background:#fafafa;
}
.all .item{
flex:1;
height:1.8rem;
background:#fff;
border:0.01rem solid #f1f2f3;
border-radius:0.07rem;
box-shadow:0rem 0.04rem 0.08rem 0rem rgba(213,224,243,0.3);
padding:0.2rem;
margin-right:0.2rem;
}
</style>
</html>
flex布局
于 2021-05-12 11:38:34 首次发布