DIV+CSS web page layout makes search engine spiders no longer tired
Author:Eve Cole
Update Time:2009-06-01 01:09:03
How to make CSS layout? Linking methods of CSS files 1. Additional links: external CSS files 2. Import CSS: When multiple CSS files are commonly used, multiple CSSs are imported into one CSS file.
There are three types of CSS rule definitions: 1. Classes such as ".RedText", ".BlueText" and ".BigText", etc. 2. Re-defined CSS tags based on the original HTML tags 3. Advanced pseudo-classes, elements with IDs defined, and a comprehensive definition
Application of CSS rules 1. Only "class" styles need to be applied, class="xxxx". Any element can have classes applied to it.
2. The difference between class and id 3. Tag application generally uses the "body" tag for one-time use. It is not recommended to define tags such as "li" and "td" that are repetitive in the page.
4. For advanced applications, defining "#id li" is much better than defining "li".
Execution order of CSS rules 1. Follow the execution order of CSS code 2. If there are duplicate rules, follow the definition of subsequent execution 3. The final rule is a combination of multiple defined rules
Key points: Advanced rule definition 1. Text style definition for different tables. (Different tables use different IDs and class style definitions)
2. Multiple hyperlink style definitions on one page 3. Multiple CSS common definitions for different objects with the same rules 4. Which is more scientific (scalability and code simplicity) for multiple CSS methods defined for the same object?