Front-End time to write a "use of CSS framework for efficient site development", a lot of friends asked me related questions. Very early 5key in the company for the framework of CSS frameworks, but also to many friends of the proposed CSS framework. The effect is very obvious. Of course, the CSS framework has advantages and disadvantages, and recently read some related articles. Some thoughts, share with you.
The benefits of CSS frameworks:
1, the development efficiency enhancement.
If you are a front-end development of a corporate site, believe that most of the time to do similar sites code work. A well-defined framework can greatly improve your productivity and avoid some common mistakes. If your job is to be billed on a per-piece basis, you will be paid more than anyone else.
2, the specification code name.
You may use some of the same class or ID in multiple sites. If you have a perfect CSS framework, you'll soon be able to read through the code for each of your sites. Don't waste your time reading the code.
3, a better team cooperation
Some companies divide the front-end code of some slightly larger sites into subprojects. Friends who have had such experience should be deeply depressed about this kind of development, pay attention to the common CSS, and pay attention to the code cooperation between each other. Over time, the waste code is more and more, it is difficult to read each other. If you set up a suitable CSS framework, you can reduce many unnecessary errors, improve product quality and efficiency.
4, solve the browser compatibility problem
Most projects now require compatibility with ie6,7 and ff. Each site may take part of the time to handle compatibility issues. The problem is dealt with at a framework level. You can save most of the time for later compatibility issues.
5, a set of complete, structure clear structure code.
The CSS framework provides a clean, rigorous infrastructure for your project. With it you can quickly build the base HTML code framework for your site. Everything is difficult at the beginning, and the basic work ahead is done. The pace of development later will improve a lot.
The CSS framework provides a clean, rigorous infrastructure for your project. With it you can quickly build the base HTML code framework for your site. Everything is difficult at the beginning, and the basic work ahead is done. The pace of development later will improve a lot.
Disadvantages of CSS Frameworks:
1, you need to fully understand the entire framework
Everyone who joins the project needs to spend a certain amount of time to fully understand the whole framework and coding specifications;
2, you will continue some of the errors in the framework of the bug
No one can guarantee that the framework is perfect without bugs. You may need time to clean up the bugs in the frame;
3, limit the development of ideas
Framework gives you the basic framework and development of ideas, which may limit your new ideas for product development;
4, the bloated source code
A large part of the code in the framework may not be used frequently, and it can also degrade execution efficiency;
5, the semantics of the framework
We've noticed the semantics of the HTML code. However, each site based on the framework is independent and unique, it is difficult to ensure the semantics of the CSS framework.