SASS 对比 CSS 属性,包括串联的 类
SASS vs. CSS attributes including concatenated classes
这里是一些 CSS 的样本,由 SASS:
编译
#affinity-page.header.slide.hasSubnav {
height: 50px;
}
我的问题是,多个串联句点是 SASS 元素还是本机 CSS 选择器方法?如果它是原生的 CSS 我想知道,这是否意味着 "Having this id, AND this class, AND this class, etc." ?谢谢
If it's native CSS I'm wondering, does it mean, "Having this id, AND
this class, AND this class, etc."?
是的。
这可能会澄清一点:https://css-tricks.com/multiple-class-id-selectors/
这里是一些 CSS 的样本,由 SASS:
编译#affinity-page.header.slide.hasSubnav {
height: 50px;
}
我的问题是,多个串联句点是 SASS 元素还是本机 CSS 选择器方法?如果它是原生的 CSS 我想知道,这是否意味着 "Having this id, AND this class, AND this class, etc." ?谢谢
If it's native CSS I'm wondering, does it mean, "Having this id, AND this class, AND this class, etc."?
是的。
这可能会澄清一点:https://css-tricks.com/multiple-class-id-selectors/