我正在试着做这样的事情
@foo: lorem;
@bar: ipsum;
.@{foo}-@{bar} {
// css-here
}预期结果:
.lorem-ipsum {
/** css-here
}我只找到了一个变量的插值,
.lorem-@{bar} { }发布于 2021-07-13 03:16:20
我想我只是找到了答案,但不知道这是最好的还是唯一的方法。
我尝试像这样附加&
.@{foo}&-@{bar} { ... }而且它起作用了。
https://stackoverflow.com/questions/68352659
复制相似问题