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

原文地址:https://www.cnblogs.com/zph666/p/12394749.html