.select {
display: flex;
flex: 1;
.select-wrapper {
flex: 1;
display: flex;
align-items: center;
z-index: 101;
&:first-child {
.line {
&:first-child {
border-top: none
}
}
}
&:last-child {
.line {
&:last-child {
border-top: none
}
}
}
// others
这里的第一个frist child 是等价于 select: firstChild 嘛?关于这个 & 符号代表同级,是代表 & firstChild 和 select-wrapper同级么。那么为什么我们需要新建一个select div的意义是什么。 用 setting-font-size:nth-child(2) 不能选到嘛。
谢谢~