是否有声明如下的方式:我可以使用可变颜色可变用更少的CSS
body.someclass { @maincolor:#somecolor;}
bidy.anotherclass { @maincolor:#anothercolor;}
也试过:
body.someclass {.maincolor {color:#somecolor;} }
body.anotherclass {.maincolor {color:#anothercolor;} }
我的工作在网站上,其中每个有mainsections的使用不同的颜色...将非常有帮助:)
你看过文档中的例子吗? – xec
目前还不清楚你在问什么。你想要可变的属性名称? –