Home > Web Front-end > CSS Tutorial > How to solve the problem of invalid css file

How to solve the problem of invalid css file

高洛峰
Release: 2017-03-14 16:06:17
Original
1872 people have browsed it

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">
Copy after login

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!

Related labels:
css
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template