sass 使用clac的问题

最后在github的issue中找到了方法,要想在sass的calc中使用变量,必须对这个变量使用sass的插值方法(#{$variable})。

所以把代码改正下面的形式就可以了:

  calc(100% - #{$topbar});
原文地址:https://www.cnblogs.com/lgjc/p/9372875.html