css - Are there any standards for blocks in BEM? When is it decided to partially extract an element as a block instead of its parent (Element)?~
滿天的星座2017-05-16 13:20:50
0
1
620
Is there any standard for blocks in BEM? How do you decide to extract a part into a block instead of an element of its parent? I don’t have a good grasp of the granularity, which makes me struggle to death when writing styles~
Recommend reading this article: Battling BEM (Extended Edition): 10 Common Problems And How To Avoid Them