javascript - css design patterns
伊谢尔伦
伊谢尔伦 2017-05-19 10:26:45
0
9
627

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

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(9)
世界只因有你

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

为情所困

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

phpcn_u1582

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)

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template