是否可以仅定位嵌套选择器的父选择器?例如:
#rootSelector{
.parentSelect{
padding: 15px 0;
margin-bottom: 20px;
border-bottom: 1px solid #DDD;
form &&onlyParentSelector&&:first-child {
padding-top: 0;
}
}
}
应输出:
form .parentSelect:first-child {}
而不是使用&
form #rootSelector .parentSelect:first-child {}