Home  >  Q&A  >  body text

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)?~

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~

滿天的星座滿天的星座2737 days ago577

reply all(1)I'll reply

  • 大家讲道理

    大家讲道理2017-05-16 13:22:50

    Recommend reading this article: Battling BEM (Extended Edition): 10 Common Problems And How To Avoid Them

    reply
    0
  • Cancelreply