【css】less和scss的写法nth-of-type和nth-child的&:使用

 p{
                &:nth-of-type(2){
                    margin-top:9px; 
                } 
               
                a{
                    color: $font-color836; 
                }  
            }
  .team{
            width:100%;
            margin:0px 4% 170px 0;
            &:nth-child(2n){
                margin-right: 0;
            }
        }


版权声明:本文为wujiezhiwei原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。