CSS-规范

BEM – Blocks, ELements and Modifiers

1
2
3
4
5
6
// Block
.container {}
// Element, depends upon the block
.container__btn {}
// Modifier, changes the style of the block
.container--rounded {}

rscss

OOCSS