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

What to do if ie9 cannot read external css styles

藏色散人
Release: 2021-02-08 10:38:26
Original
2417 people have browsed it

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

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

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!

Related labels:
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