LESS有mixins,可以很容易地重用另一个类或ID规则集中的属性。有没有办法在另一个规则集中引用元素的属性(没有类或ID)?我想做类似的事情:
// Defined in a base .less file somewhere
a {
color: blue;
}
// Defined within a more specific file
.myClass a {
color: red;
}
// #myElement is used within .myClass, but I'd like to re-use the
// base styles.
#myElement a {
a();
}