Five misunderstandings of web page making

Source: Internet
Author: User
Keywords Misunderstanding

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

1 do not excessively pursue the "minimization" of CSS

The reusability of CSS is doomed to be "smaller" than HTML, but using CSS is not because he is small. It's because CSS makes the page structure clearer. Many people for the CSS file can be smaller and racking their brains to compress code, merging properties. If you want to pursue a "smaller web page", you will be recommended to learn more about the advantages and disadvantages of the various web image formats and their compression optimization methods. is more useful than compressing CSS code. It is suggested that the writing of CSS should be easy to read, the structure is clear, instead of compressing and merging code for a few k sizes, it is more difficult to correct and revise later.

In front of the picture, these optimizations are not necessary.

2 picture is not cut the smaller the better

In order to make the page display, so that users can see the Web page loading "waiting process" and the picture cut too small is a typical misunderstanding.

This can lead to two problems: too many server requests can seriously affect server performance. So recommend as much as possible to play the role of CSS sprites. Even CSS, JS try not to split too small, can integrate on the integration.

In fact, no matter how you cut, the smaller the total capacity and occupy space will be slightly larger. Outweigh!

3 forms are not backward

Div didn't show up. A table is the primary container for making pages. Now all browsers still support the old HTML tags, and HTML technology is relatively mature, reasonable use of some of the table's HTML properties can solve some CSS compatibility problems. The standard of the consortium is just a guide and there is no need to insist. Moreover, the strength of the table is the presentation of the data, the table can not lag behind!

4 What are the attributes of the parent container and child container

Many people use child attributes to control the display of the parent. This is the wrong way (certainly not absolute), common use the width of child elements to control the breadth of the parent element, in fact, the width of the parent container is "stretched", when the child container properties have changed, will affect more adjacent elements. They should have their own attributes, must not randomly write.

It is clear that the container produces error or loading is not complete when it will not affect the adjacent or related elements, clear whether the container property has universal reuse of two aspects to determine the parent and child containers of their respective attributes, will make the site structure more orderly!

5 Concept of the container

Any element is a container, but they have different attributes. For example, a can also be designed as a div,div can be designed as Span,em can also become li. So you can try to unify their attributes and write them in a container for easy modification and management. You don't have to write a div to implement an exclusive row because Div has an exclusive line of attributes, but a can also be implemented.

(Luzhou Net http://www.luzhou6.com original)

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.