calc使用方法:
注意:计算符号前后必须有空格
.g-body{
height: calc(100% - 50px);
}
在less中使用产生冲突时解决办法:
.g-body {
background: @bg-color1;
height: calc(~"100% - 50px ");
}
less变量写法:
@g-head-height: 60px;
@bd-color1: #888;
.g-body {
background: @bg-color1;
height: calc(~"100% - @{g-head-height} ");
}