我有一个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);
IE 使用@weight
, @style
,的默认值@color