【发布时间】:2017-09-19 09:47:41
【问题描述】:
我试过 sass
.title {
font-weight: bold;
// more title styles
&h1 {
font-size: 30px;
}
}
生成的 css 是:
.titleh1 {
font-weight: bold;
// more title styles
}
.titleh1 {
font-size: 30px;
}
无论如何我可以将 h1 嵌套在 .title 中以提供这样的 css 输出吗?
.titleh1 {
font-weight: bold;
// more title styles
}
h1.title {
font-size: 30px;
}
【问题讨论】:
标签: sass