我想为五个紫色+灰色的框中的每一个添加border-radius,最好不要添加任何HTML样式,因为盒子内部div元素的排列可能会发生变化。请帮忙解决,我尝试过使用first-child和second-child选择器,但没有成功。以下是相关链接:https://codepen.io/siddagra/pen/vYBoJyM
.ExpandedSetPiece:first-child {
border-top-left-radius: 5px;
border-top-right-radius: 5px;
}
.ExpandedSetPiece:last-child {
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
}