假设我有以下课程
.hello {
border: 1px solid black;
border-radius: 50%;
}
是否有可能在SASS / COMPASS中实现以下目的?
.hello.world {
@include <some-reset-mixin-whatever>(border-bottom-left-radius, border-bottom-right-radius, border-bottom);
}
而不是
.hello.world {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
border-bottom: 0;
}
我知道我可以自己编写这个混音,但是我希望尽可能地使用它,如果COMPASS已经拥有它就会很好。
答案 0 :(得分:2)
罗盘似乎没有提供开箱即用的重置功能,但这只是一个非常简单的重置混音,只需从列表中选择default css values。
Integer.parseInt(ints[]);