我用不同的参数调用了一个 mixinless 函数两次,但结果是相同的,并且是由第一个参数创建的。有一个例子:
输入:
.font-face (@fontName, @fontFileName)
{
@font-face {
font-family: @fontName;
src: url("../../fonts/@{fontFileName}.eot");
src: url("../../fonts/@{fontFileName}.eot?#iefix") format("embedded-opentype"),
url("../../fonts/@{fontFileName}.woff") format("woff"),
url("../../fonts/@{fontFileName}.ttf") format("truetype");
font-weight: normal;
font-style: normal;
}
}
.font-face ("BMitra", "BMitra");
.font-face ("BMitraBold", "BMitraBold");
输出:
@font-face {
font-family: "BMitra";
src: url("../../fonts/BMitra.eot");
src: url("../../fonts/BMitra.eot?#iefix") format("embedded-opentype"), url("../../fonts/BMitra.woff") format("woff"), url("../../fonts/BMitra.ttf") format("truetype");
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: "BMitra";
src: url("../../fonts/BMitra.eot");
src: url("../../fonts/BMitra.eot?#iefix") format("embedded-opentype"), url("../../fonts/BMitra.woff") format("woff"), url("../../fonts/BMitra.ttf") format("truetype");
font-weight: normal;
font-style: normal;
}
有什么问题?我在 ASP .Net MVC 3.0 应用程序中使用 dotless。