【发布时间】:2016-05-04 18:52:01
【问题描述】:
考虑以下几点:
.flashing {
.flashKeyFrames(fade-in;{
0%, 100% {opacity: 1;}
50% {opacity: 0;}
});
.flashing(fade-in linear infinite alternate; 1s)
}
.flashKeyFrames(@name; @arguments) {
@-moz-keyframes @name { @arguments(); }
@-webkit-keyframes @name { @arguments(); }
@keyframes @name { @arguments(); }
}
.flashing(@arguments, @duration) {
-webkit-animation: @arguments;
-moz-animation: @arguments;
animation: @arguments;
-webkit-animation-duration: @duration;
-moz-animation-duration: @duration;
animation-duration: @duration;
}
@arguments 后面的括号必须是什么?我认为当用作 mixins 时括号是可选的?所以我假设@arguments 没有被定义为mixin,但那是什么?
【问题讨论】:
标签: less less-mixins