Solution to the problem that ie9 cannot read external css styles: 1. Make sure that the written relative path can directly access the css file to be referenced; 2. Make sure that the encoding of css is utf-8, and there is no internal opening Garbled code; 3. Copy all the css to the page.
The operating environment of this article: windows7 system, HTML5&&CSS3 version, DELL G3 computer.
What should I do if ie9 cannot read external css styles?
The reference path of external styles is as follows:
<link rel="stylesheet" href="css/register.css" />
The solutions and precautions are as follows:
Make sure all The relative path written allows direct access to the css file to be referenced.
Make sure that the encoding of the css is utf-8, and there is no garbled code when opening it internally
Copy all the css to the page and observe whether the css itself is can take effect.
(Recommended learning: CSS video tutorial)
Supplement:
Tag definition document and external resources Relationship. The most common use of the
tag is to link style sheets.
Used in the head tag, the syntax is as follows:
<head> <link rel="stylesheet" type="text/css" href="theme.css"> </head>
The above is the detailed content of What to do if ie9 cannot read external css styles. For more information, please follow other related articles on the PHP Chinese website!