I would like to ask the master, what are the commonly used design patterns in CSS design, and what are the characteristics of each?
世界只因有你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♪(^∇^*)
给我你的怀抱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
怪我咯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
滿天的星座2017-05-19 10:28:45
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
为情所困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
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