如何在具有不同值的不同div中使用相同的scss变量?

时间:2017-02-12 10:21:35

标签: css sass

我有一个varibale

$height: 40px;

现在,我用它作为

.exmp{
    height: $height;
}

现在,我想在其他类

中使用该变量
.exmp2{
   height: $height;  // here the height must be different. I want to keep 100px
}

我怎么能做到这一点?请帮帮我。

0 个答案:

没有答案