If CSS is correct and the link does not go wrong, why does the CSS style not take effect?
<!Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!Doctype HTML public "-// W3C // dtd xhtml 1.0 strict // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!Doctype HTML public "-// W3C // dtd xhtml 1.0 frameset // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-Frameset.dtd">
transitional type : it refers to a transitional type. This type of browser is loose in XHTML parsing and allows the use of tags in html4.01, but it must comply with the XHTML syntax. This is a common method, which is used by default when a webpage is created using Dreamweaver. aa25.cn
strict type : strict type. The browser is relatively strict when used, you are not allowed to use any representations of the identity and attributes, such as directly using the bgcolor background color attribute in the element.
frameset type : Framework page type. If the framework structure is used on a webpage, such a document declaration is necessary.
the basic information has been introduced. Now I know why CSS does not take effect. Don't look at this sentence and you can't ignore it!