Linking methods of CSS files
·Additional links: external CSS files·Importing CSS: When applying multiple CSS files,
there are three types of CSS rule definitions for importing multiple CSSs into one CSS file:
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 defined IDs, and
the application of comprehensively defined CSS rules
·Only the "class" style is required Application, class="xxxx". Any element can have classes applied to it.
·The difference between class and id·Tag applications generally use the "body" tag for one-time use. It is not recommended to define tags such as "li" and "td" that are highly repetitive in the page.
·Advanced multi-use, defining "#id li" is much better than defining "li".
Execution order of CSS rules
·Follow the execution order of CSS code·If there are repeated rules, follow the definition of subsequent execution·The final rule is the comprehensive
focus of multiple definition rules: Advanced rule definition
1. Definition of text styles for different tables. (Different tables use different IDs and class style definitions)
2. Multiple hyperlink style definitions on one page 3. Multiple CSS definitions of the same rules for different objects 4. Consider which is more scientific (scalability and code simplicity) for multiple CSS methods defined for the same object