我有一个Less mixin定义为:
.fontStyle(@family,@size,@weight: normal,@style: normal,@color: #ffffff,@letter-spacing: normal) { font-family: @family; font-size: @size; color: @color; font-weight: @weight; font-style: @style; letter-spacing: @letter-spacing; }
如何定义使用方法:
.fontStyle('NimbusSansNovCon-Reg',12px,0.1em);
I.E.使用@weight,@style,@color的默认设置