css选择器可以选择除第一个子元素的其他元素的方法

第一种方法:使用not选择器 :not(:first-child)

div:not(:first-child){
    display: flex;
}

第二种方法:使用nth-of-type选择器,与第一种类似,只不过多了元素类型

第三种方法:使用nth-child选择器(匹配div父元素的第2个及之后的子元素)

div:nth-child(n+2){
    display: flex;
}