If the CSS is correct and the link is correct, 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: refers to a transitional type. Using this type of browser, the parsing of XHTML is relatively loose. , allowing the use of tags in HTML4.01, but must comply with the syntax of XHTML. This is a common method now, and it is this type by default when creating a web page with Dreamweaver. aa25.cn
Strict type: Strict type, the browser will be relatively strict when used, and does not allow the use of any form of identification and attributes, such as directly using the bgcolor background color attribute in the element.
Frameset type: FramePage type. If the web page uses a frame structure, it is necessary to use such a document statement.
Now that we have introduced the basic situation, now we know why CSS does not take effect. Don’t read this sentence, don’t ignore it!
The above is the detailed content of How to solve the problem of invalid css file. For more information, please follow other related articles on the PHP Chinese website!