Choosing the right front-end framework

核能气质少年 提交于 2019-12-23 00:52:09

问题


I'm looking into Bootstrap vs Foundation my criterias are:

  • Lightweight
  • Easily customized
  • Easily build complex HTML layout
  • Mobile / Responsive

In my past experience with Bootstrap, building layout from a designer mockup as a "pixel perfect" HTML was not trivial.

Your thoughts, ideas are appreciated.


回答1:


Bootstrap and Zurb Foundation are both CSS frameworks, but they have a different purposes.

The primary goal of Bootstrap is fast prototyping of websites or web applications that have a base style. Since the styles are opinionated, that makes it more work to get it to match a custom design. It is heavily supported and a large community. It is built on Less and that can be a plus for some people.

Zurb Foundation 4 takes a different approach. It is more of a base framework for a project that will be customized fully based on project need. The styles are easily overridable. It is a great prototyping tool and it is not opinionated with styles. The grid system is great, and anyone can understand it. If you use Foundation your designer will think differently (they will keep mobile in mind more). It is built on SASS. That makes it easy to incorporate Compass sprite generation. I found the CSS classes in foundation to be easier for beginners to pick up and remember.

You can watch some of the Zurb presentation videos on the internet and they really help you understand why they built it.

I was working on my own framework to realize that everything I needed and more was already built into Foundation. The hardest part is understanding Compass and Sass. After that you will get the hang of Foundation easily.




回答2:


It really depends on which of your criteria are more important.

Foundation is built for making complex, responsive websites, but it has a pretty big footprint if you want to use everything it has to offer. Bootstrap, on the other hand, is comparatively small but doesn't have anywhere near as much functionality built in. I can't speak to how easy it is to customize Bootstrap, but altering Foundation to fit your needs is very simple (especially if you use the SASS version).

It's a subjective choice: if your priority is to use something with a small footprint, go with Bootstrap. If having a big, responsive-ready library to work with is more important to you, go with Foundation.



来源:https://stackoverflow.com/questions/17314434/choosing-the-right-front-end-framework

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!