<div v-for="item in floatList" class="float-box" >
<div class="float-boxmall" :style="{background: `url(${item.img}) no-repeat center` }">
{{item.name}}
</div>
</div>
.float-box{
width:vm(150);
height:vm(80);
margin-bottom:vm(8);
border-radius:vm(4);
display: flex;
align-items: center;
justify-content: center;
}
.float-boxmall{
background-size: contain !important;
color:#fff;
font-size:vm(28);
text-align: center;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
line-clamp: 2;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}