【发布时间】:2012-06-27 05:53:16
【问题描述】:
@extend 规则有点问题,这就是我得到的(关注 h1):
.content-header {
// CSS properties
h1 {
// CSS properties
}
}
.box-header {
// CSS properties
h1 {
@extend .content-header h1; // My selector problem!
// And his own CSS properties
}
}
原来是这样:
.content-header h1, .box-header h1 {
/* Happily sharing the same CSS properties */
}
但似乎@extend 不喜欢那样,有没有其他方法可以写这个而不给h1 一个类??
【问题讨论】: