Summary of the disadvantages and advantages of css framework Layout

Source: Internet
Author: User

Currently, many websites use Div + CSS to deploy the webpage structure. The advantage is that the speed is fast and the negative impact is acceptable. Let's look at the analysis below.
I wrote an article "using css framework for efficient Site Development" in front-end time. Many of my friends asked me related questions. Very early on, 5key was working on the css framework architecture at the company, and many friends were also advised on the css framework. The effect is obvious. Of course, the css framework has both advantages and disadvantages. Recently, I have read some related Article . Share your thoughts with you.

Benefits of the css framework:
1. Improved development efficiency.
If you are a front-end development of an enterprise website, I believe that most of the time you have carried outCodeWork. The defined framework can greatly improve your work efficiency and avoid some common errors. If you pay for your work by piece, you will be paid more than others.

2. Standard code naming.
You may use the same class or ID in multiple sites. If you have a complete set of CSS frameworks, you will soon be able to read the code of each of your sites. You don't have to waste time reading code.

3. Better Teamwork
Some companies divide the front-end code of some larger websites into several sub-projects. Friends with such experience should be deeply depressed about this development method. Pay attention to public CSS and code cooperation between them. Over time, there are more and more discarded Code, making it hard to read each other. If a proper css framework is established, you can reduce many unnecessary errors and improve product quality and work efficiency.

4. Solve browser compatibility issues
Currently, most projects require compatibility with IE6, 7, and ff. Each site may spend some time dealing with compatibility issues. At the framework level, we can solve this problem. This saves most of the time for subsequent compatibility issues.

5. A complete set of Structured code with clear structure.
The css framework provides a clean and rigorous infrastructure for your project. You can quickly build a basic HTML code framework for your website. Everything is difficult at the beginning, and the basic work is done well. The subsequent development speed will increase a lot.

Disadvantages of css framework:
1. You need to fully understand the entire framework
Everyone who joins the project needs to spend some time fully understanding the entire framework and coding specifications;

2. You will continue with errors and bugs in the framework.
No one can ensure that their framework is perfect without any bugs. You may need time to clear bugs in the framework;

3. restrict development ideas
The framework provides the basic architecture and development ideas, which may limit your new ideas for product development;

4. bloatedSource code
A large part of the code in the framework may not be used frequently, and the execution efficiency will be reduced;

5. semantic framework
We have noticed the semantics of HTML code. However, each website based on the framework is independent and unique, and it is difficult for us to guarantee the semantic nature of the css framework.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.