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♪(^∇^*)
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
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
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
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
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♪(^∇^*)
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
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
It’s time to write a set of
css
,就需用到css
design patterns that are easy to maintain.Design Patterns: OOCSS, SMACSS and BEM
Talk about CSS design patterns
Some widely circulated patterns:
1. OOCSS - Object Oriented CSS
2. SMACSS - Scalable and Modular Architecture for CSS
3. Meta CSS
4. BEM
I came here to see the answer haha
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
BEM is more popular
Personally, I think sass is easier to use (I’m just a newbie)