:nth-of-type bigger 3
:nth-of-type bigger 3
&:nth-of-type(4 + n) ❌
.multi-flex-box-6 {
flex-flow: row wrap;
height: 440px;
.flex-item {
/* not work at all ❌*/
&:nth-of-type(4 + n) {
.image-box {
border-top: 0;
color: red !important;
}
}
}
}
&:nth-of-type(4), &:nth-of-type(5), &:nth-of-type(6) ✅
.multi-flex-box-6 {
flex-flow: row wrap;
height: 440px;
.flex-item {
/* works well ✅*/
&:nth-of-type(4),
&:nth-of-type(5),
&:nth-of-type(6) {
.image-box {
border-top: 0;
color: red !important;
}
}
}
}
refs
https://www.cnblogs.com/xgqfrms/p/15010938.html
©xgqfrms 2012-2020
www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!
原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/15175046.html
未经授权禁止转载,违者必究!