CSS 除了第一个外的其他的选择方法
tr{ //第一个元素 &:first-child{ td{ background-color: #eef6fc; } } //除了第一个外的其他元素 &:not(:first-child){ td{ &:first-child{ background-color: #ebf8f1; } } } }
tr{ //第一个元素 &:first-child{ td{ background-color: #eef6fc; } } //除了第一个外的其他元素 &:not(:first-child){ td{ &:first-child{ background-color: #ebf8f1; } } } }