CSS layout rules in Dreamweaver CS3
Author:Eve Cole
Update Time:2009-06-01 01:01:23
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-definition of CSS tags based on original HTML tags 3. Advanced pseudo-classes, elements with IDs defined, and the application of comprehensively defined CSS rules 1. Only "class" style It needs 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 order of execution of CSS code 2. If there are duplicate rules, follow the definition of subsequent execution 3. The final rule is the comprehensive focus of multiple definition rules: Advanced rule definition 1. For text in different tables Style definition. (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?