3
我刚刚发现了一个奇怪的情况。 似乎有一个错误:伪选择后LESS Mixin Bug:Pseudo Selector后
请检查下面的代码,看到内嵌批注
.nav-prev a{
left:20px;
&:before {
top: 75%;
.chevron-line;
.rotate();
}
// this mixin is causing an error and it wouldn't compile
&:after {
top: 25%;
.chevron-line;
.rotate (-45deg);
}
}
// // this is the fix applied for the previous error
// .nav-prev a:after {
// top: 25%;
// .chevron-line;
// .rotate (-45deg);
// }
.nav-next a{
right:20px;
&:before{
top: 25%;
.chevron-line;
.rotate();
}
// strangely this one works and compile correctly
&:after{
top: 75%;
.chevron-line;
.rotate (-45deg);
}
}
注:我用LiveReload编译。
问题
这有什么错我的语法? 还是缺少一个bug? 或者它是一个编译器错误?
谢谢你们。
太好了,谢谢你的联系。 – ifdion 2013-03-02 02:22:44