.average(@x, @y) { @average: ((@x + @y) / 2); } div { .average(16px, 50px); // "call" the mixin padding: @average; // use its "return" value } 必须可以, 详情参考http://lesscss.cn/features/#m...
没有,只有mixin
点踩的朋友,你根本就不明白mixin和function的区别,还要误导别人,赶快转行吧