0
类名不同类别添加我有这样的结构,在一个古老的CSS文件:在SASS
h1.myClass{
color:red;
font-size:18px;
}
h2.myClass{
color:blue;
font-size:16px;
}
h3.myClass{
color:yellow;
font-size:14px;
}
,我想这样做的SASS方式(如果可能)。 某种方式,我不必重复myClass几次。也许是一种类似于SASS中嵌套的技术。
哎呦,这是一个更好的重复:HTTP://计算器。 com/questions/24841482/how-do-i-reference-the-parent-selector-the-end – cimmanon 2014-09-28 16:46:06