//记住,@_一定会被执行,第一开始执行的,然后是执行应该执行的啊 就是通过混合的((第一个字符串形参)),来确定具体要执行哪一个同名混合
"en">"UTF-8">Document
导入其他的less文件: //这下面是导入的文件=====================
.triangle(@_, @width, @color){ width: 0; height: 0; border-style: solid solid solid solid; } .triangle(Down, @width, @color){ //width: 0; //height: 0; border-width: @width; //border-style: solid solid solid solid; border-color: @color transparent transparent transparent; } .triangle(Top, @width, @color){ //width: 0; //height: 0; border-width: @width; //border-style: solid solid solid solid; border-color: transparent transparent @color transparent; } .triangle(Left, @width, @color){ //width: 0; //height: 0; border-width: @width; //border-style: solid solid solid solid; border-color: transparent @color transparent transparent; } .triangle(Right, @width, @color){ //width: 0; //height: 0; border-width: @width; //border-style: solid solid solid solid; border-color: transparent transparent transparent @color; } ==========================================
"en">"UTF-8">Document