xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

: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, 禁止转载 🈲️,侵权必究⚠️!


posted @ 2021-08-23 11:04  xgqfrms  阅读(19)  评论(2编辑  收藏  举报