标签: css this less addition
我想在更少的时间内实现以下目标:
.bar { width: 100px; } .foo .bar { width: this + 20px // 120px }
是否可以使用Less,如果是,如何?
由于
答案 0 :(得分:3)
这不起作用吗?
@width: 100px; .bar { width: @width } .foo .bar { width: @width + 20px }