Summary of disadvantages and advantages of using CSS framework layouts _ Experience Exchange

Source: Internet
Author: User
Now a lot of websites have used P+CSS to layout the structure of the Web page, the advantage is that the speed is fast, can negatively affect it, to see the following analysis
The front-end time wrote a "Use CSS framework for efficient site development", a lot of friends asked me related questions. Very early 5key on the company's CSS framework architecture, but also many friends to put forward the CSS framework recommendations. The effect is very obvious. Of course, the CSS framework has pros and cons, and has recently seen some related articles. Some thoughts to share with you.

The benefit of CSS frameworks:
1, the development efficiency improvement.
If you are the front-end development of a business building station, I believe that in most of the time the same site code work. A well-defined framework can greatly improve your productivity and avoid some common mistakes. If your job is billed on a per-piece basis, you will certainly be paid more than others.

2, the specification code naming.
You may use some of the same class or ID in multiple sites. If you have a well-developed CSS framework, you'll soon be able to read through each of your site's code. Don't waste your time reading the code.

3. Better team work
Some companies divide the front-end code of some slightly larger sites into sub-projects. Friends with this kind of experience should be deeply depressed about this kind of development, pay attention to the common CSS, and pay attention to each other's code mates. Over time, obsolete code becomes more and more difficult to read from one another. If you set up a suitable CSS framework, you can reduce a lot of unnecessary errors, improve product quality and efficiency.

4, solve the browser compatibility issues
Most projects now require compatibility with ie6,7 and ff. Each site may take a fraction of the time to deal with compatibility issues. At the framework level, the problem is handled well. 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, the basic work in front is done. The later development speed will be much higher.

the disadvantages of CSS frameworks:
1, you need to fully understand the entire framework
Each person 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 bug in the frame;

3, limit the development of ideas
Framework gives you the basic structure and development of ideas, which may limit your new ideas on product development;

4. Bloated source code
There may be a large portion of the code in the framework that will not be used frequently, and it will reduce execution efficiency;

5, the semantics of the framework
We have noticed the semantics of HTML code. But each site based on the framework is unique, and it is difficult to ensure that the CSS framework is semantically semantic.

The above is the use of CSS framework layout shortcomings and advantages of the summary _ experience exchange, more relevant content please pay attention to topic.alibabacloud.com (www.php.cn)!

  • 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.