失效原因是在它之前还有兄弟元素
这里使用
.list{
&:first-child{} //不生效,因为有在它之前还有兄弟 tip 和 listHeader
}
解决办法 :使用nth-of-type 或者给第一个list加 id 或者特殊 class 吧
失效原因是在它之前还有兄弟元素
这里使用
.list{
&:first-child{} //不生效,因为有在它之前还有兄弟 tip 和 listHeader
}
解决办法 :使用nth-of-type 或者给第一个list加 id 或者特殊 class 吧