Home  >  Article  >  Web Front-end  >  What to do if ie9 cannot read external css styles

What to do if ie9 cannot read external css styles

藏色散人
藏色散人Original
2021-02-08 10:38:262369browse

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.

What to do if ie9 cannot read external css styles

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:

2cdf5bf648cf2f33323966d7f58a7f3f Tag definition document and external resources Relationship. The most common use of the

2cdf5bf648cf2f33323966d7f58a7f3f 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!

Statement:
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