less 中function
/** * .margin(@space, @limit-groups) */ .margin(@space, @index: 10) when (@index > 0 ) { @value: @space * @index; @valuepx: @value * 1px; .ml-@{value} { margin-left: @valuepx; } .mr-@{value} { margin-right: @valuepx; } .mt-@{value} { margin-top: @valuepx; } .mb-@{value} { margin-bottom: @valuepx; } @next: @index - 1; .margin(@space, @next); } .margin(5);
相关推荐
周公周金桥 2020-09-06
zjuwangleicn 2020-09-04
hellowzm 2020-08-18
大象从不倒下 2020-07-31
AlisaClass 2020-07-19
尚衍亮 2020-06-12
淡风wisdon大大 2020-06-06
黎豆子 2020-05-07
hilary0 2020-05-04
zhanghao 2020-04-21
MaureenChen 2020-04-21
xingguanghai 2020-03-13
nercon 2020-02-22
impress 2020-02-20
ajaxtony 2020-02-18
teresalxm 2020-02-18
福叔 2020-02-16
mituan 2020-01-17