css规范

BEM 命名规范

BEM 命名规范(了解更多)B(代表块)__E(代表元素)--M(代表修饰符)

.stick-man__head {
}
.stick-man--blue {
}
.stick-man__head--small {
}

stick-man (B: Block)
head (E: Elements)
small和blue (M: 修饰器)

  

参考地址:https://zhuanlan.zhihu.com/p/33188830

posted @ 2020-03-02 11:54  zph前端  阅读(87)  评论(0编辑  收藏  举报