sass 使用

哎,学海无涯。。。

以前没认真看文档的锅

sass 中伪元素,伪类的写法 :

/**直接在前面写个 ‘&’就可以了*/
 .father{
    display: inline-block;
    ...
    &:before{
      content: '';
     ...
    }
}    

  

posted @ 2017-09-08 11:29  DAOLIDEWONIU  阅读(128)  评论(0编辑  收藏  举报