Home  >  Article  >  Web Front-end  >  IE11 external style sheet is invalid_html/css_WEB-ITnose

IE11 external style sheet is invalid_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:43:08932browse

A very amazing problem
There are no problems with the two html and css texts in chrome and ff. However, after reaching IE11, the style sheet completely failed. Looking at the console, I found that the css was not loaded at all. .
Loading method

<link href="patent.css" rel="stylesheet" type="text/css">


The amazing thing is that with constant refreshing, I can load normally once every 5 times...

What’s even more amazing is that I After adding a few carriage returns to the head part of the html file to make it beautiful, no matter how I refresh it, it will have no effect.

At present, I have tried to paste the content in the css directly into the html, install it with c9ccee2e6ea535a969eb3f532ad9fe89, and use it as an internal style sheet. It works well in IE11...

For questions, use link directly. Why doesn't it work? What's the problem?


Reply to discussion (solution)

Is the server local?
Also, the information you described is too little! I don’t know what the reason is, whether it’s the network, the file name, or the browser itself. It is recommended that you write a separate test page with the simplest content, such as just a div and then use css to change its background or something. If it can load normally, then there is some problem with your project itself!

I am qq734337406. I encountered the same problem as you today. I searched for you on the Internet. I haven’t solved it yet. Have you solved it?

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