跳到主要内容

BEM命名规范

https://segmentfault.com/a/1190000007956424

BEM命名规范

  • B(Block): 整体模块的命名
  • E(Element): 元素,比如header、body、content、footer..., 用__/_连接
  • M(Modifier): 修饰符,可以用于描述指定功能,用--/-连接