【发布时间】:2013-06-11 13:13:46
【问题描述】:
我有一个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 的默认值
【问题讨论】:
标签: css parameters less mixins