@w :100px;
@colors:#01FF60,#E0D514,#F77B23,#E014D2,#164DF8,#7CC2FA, #C714E0,#F77B23,#DEE014;
each(@colors, {
.son:nth-child(@{key}) {
width: @w;
height: @w;
background-color: @value;
margin-right: 10px;
}
})
.box {
width: 900px;
height: 900px;
display: flex;
}
less循环
最新推荐文章于 2024-08-16 23:09:58 发布