search

Home  >  Q&A  >  body text

javascript - css design patterns

I would like to ask the master, what are the commonly used design patterns in CSS design, and what are the characteristics of each?

伊谢尔伦伊谢尔伦2788 days ago667

reply all(9)I'll reply

  • 世界只因有你

    世界只因有你2017-05-19 10:28:45

    I have never heard of CSS design patterns. I have only heard of JavaScript design patterns and website design patterns: such as Hybrid and WebView. The poster asked if it is CSS layout. Common layouts include ordinary layout (not separated from the document flow), floating layout, positioning layout and Flex layout. There are also some CSS design ideas: such as media queries and percentages to achieve adaptive~~An answer from a non-master Completed♪(^∇^*)

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-05-19 10:28:45

    It seems that no one has summarized it yet. Is it because it is too simple or because there are no talented people to sum up the experience?
    Or maybe it is because CSS is too simple and you can just write it blindly

    reply
    0
  • 怪我咯

    怪我咯2017-05-19 10:28:45

    Css does not have a design pattern.
    If you want to talk about the layout method, I will add a rem layout from the one above.
    If you want to talk about css preprocessing, there is less sass

    reply
    0
  • 滿天的星座

    滿天的星座2017-05-19 10:28:45

    It’s time to write a set of css,就需用到cssdesign patterns that are easy to maintain.
    Design Patterns: OOCSS, SMACSS and BEM
    Talk about CSS design patterns

    reply
    0
  • 为情所困

    为情所困2017-05-19 10:28:45

    Some widely circulated patterns:
    1. OOCSS - Object Oriented CSS
    2. SMACSS - Scalable and Modular Architecture for CSS
    3. Meta CSS
    4. BEM

    reply
    0
  • phpcn_u1582

    phpcn_u15822017-05-19 10:28:45

    I came here to see the answer haha

    reply
    0
  • PHP中文网

    PHP中文网2017-05-19 10:28:45

    Organizing CSS: OOCSS, SMACSS, and BEM
    OOCSS, ACSS, BEM, SMACSS: what are they? What should I use?
    It’s not that difficult, let’s talk about CSS design patterns
    Discussing CSS architectural methods-using OOCSS, SMACSS, BEM For example
    I think of OOCSS and SMACSS and other CSS specifications

    reply
    0
  • 高洛峰

    高洛峰2017-05-19 10:28:45

    BEM is more popular

    reply
    0
  • 阿神

    阿神2017-05-19 10:28:45

    Personally, I think sass is easier to use (I’m just a newbie)

    reply
    0
  • Cancelreply