td {
padding: 0;
// 选择第12到第21区间内的元素(包含12和21)
&:nth-child(n + 12):nth-child(-n + 21) {
border-right: 2px solid #e35f15 !important;
}
}
scss选择某范围内的元素
最新推荐文章于 2024-05-24 10:33:57 发布
td {
padding: 0;
// 选择第12到第21区间内的元素(包含12和21)
&:nth-child(n + 12):nth-child(-n + 21) {
border-right: 2px solid #e35f15 !important;
}
}