Web Layer Improvement I-weight (Zhong) with CSS

Source: Internet
Author: User
Collation
A brother said well that how spring, MVC, and ORM are layered, and how to encapsulate them make programmers feel better, in the eyes of the customer, there is no direct value-added value (at most, the speed of subsequent modifications is a little faster). Therefore, we still need to spend some time thinking about the value-added aspects of the customer, first, the enhancement of business intelligence; second, the improvement of customer experience, that is, the improvement of the performance layer.

<Website reconstruction> is a hot book. Its viewpoint is very clear and simple. It can be viewed in one afternoon. Maybe there is no need to write a book at all. However, such a simple view is very useful:

Viewpoint 1: Do not use nested and nested tables for formatting. Instead, use the intuitive <div> to make the view layer clear.

Table formatting is the original sin of HTML. Every generation of web programmers suffer from it, but as long as they make up their minds, they can immediately abandon it.
Our comrade David just sat down and worked three or two times to reconstruct the current project. The effect was remarkable.
Some people have misunderstood this book to advocate completely abandoning the table. In fact, it is not used for page layout. The content itself is also used for table.
There will also be an example of <div> typographical layout and some details.

Viewpoint 2: Completely use CSS to control the page style, so that the page style is unified and instantly changed.

No one needs CSS, but it takes some time to learn the CSS syntax to implement a good encapsulation, and then digest and design it by yourself. There is also a little introduction in the book, such as # symbol (select CSS based on the ID of the HTML node), for example, encapsulating the image into CSS, I am the first to perceive it, but it must be used to complete the encapsulation.
Our comrade David has also completed this task, and whether it is good or not remains to be tested by the project.

There is a website that is the best annotation and demonstration of the entire book:CSS zen garden
In addition, the open source brand Tigris abstracts a set of public UIS from several of its projects, you can refer to their encapsulation method: http://style.tigris.org/

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.