When DIV+CSS suddenly appeared in the web design industry, it was highly praised by both the official and the private sector. It seemed that the era of Table design was coming to an end, and we were about to enter the era of DIV+CSS. If you don’t understand DIV+CSS, you wouldn’t know it. I'm embarrassed to say that you know web design, and I don't know DIV+CSS. You're embarrassed to say that you're a webmaster. If you still use TABLE to design your site, countless scornful lights will be cast on you.
But is DIV+CSS really so awesome? How to really use DIV+CSS to optimize the site, instead of selling dog meat with a sheep's head and pretending to be an elephant?
There are several misunderstandings in the design of DIV+CSS, especially what should be done Clarification:
1. The rationality of DIV+CSS is that it can carry out unified design and management of web pages. Through a style sheet, one thing affects the whole body. As long as the style sheet is modified, the style of the entire site can be unified. If it is a separate page If you make a style sheet, or just make a div, without a global design concept, then this div+CSS design method is completely unnecessary and even becomes a burden;
2. Use DIV+CSS like Table, endless Nesting has the same effect as Table design. It will not bring about search engine optimization effects, but will increase the burden on the page;
3. Div+CSS is respected, but compatibility is not considered. TABLE design has been around for a long time and has been viewed The browser is widely supported, so the display effect is very good and there will be no misalignment. However, DIV+CSS will cause page misalignment in some browsers, so the conditions of different browsers must also be taken into consideration when designing. Make changes and debug.
Of course, DIV+CSS has its inherent advantages: 1. Standardized page structure; 2. Conducive to unified design and management; 3. It can get good support from search engines. However, it seems that when using DIV+CSS, you should pay attention to the above misunderstandings. I believe webmasters are There is a lot of experience and more mature design concepts.