我正在为我的元素运行 scss lint,它报告了一些我不确定如何修复的问题。
我的 scs
#test-id {
.table {
.test {
color: #fff;
}
}
}
Scss 提示
MergeableSelector: Merge rule `#test-id` with rule on line 7
我不确定如何合并我的选择器。谁能帮我解决这个问题?谢谢!
最佳答案
不知道第 7 行是什么,我猜它告诉你这样做:
#test-id .table .test {
color: #fff;
}
因为在这种情况下不需要嵌套。
关于html - 如何解决我的 sass 选择器问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32340305/