“样式表未加载,因为它的MIME类型,”text / html“不是“text / css” [英] "The stylesheet was not loaded because its MIME type, "text/html" is not "text/css"

查看:17009
本文介绍了“样式表未加载,因为它的MIME类型,”text / html“不是“text / css”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个javascript应用程序,当我在Firefox上运行它我在控制台上得到以下错误:

I have a javascript application and when I run it on firefox I am getting the following erro on the console:


因为
的MIME类型text / html不是
text / css。

"The stylesheet was not loaded because its MIME type, "text/html" is not "text/css".

DumbStuck !!

DumbStuck!!

编辑:
请注意,它告诉样式表ABCD ...
但是ABCD实际上是一个HTML文件。

Note that it tells that "The stylesheet ABCD..." But ABCD is actually an HTML file.

编辑( ANSWER ):实际上我错误地把 href = ,因此html文件被重新定义为CSS本身Mozilla有类似的错误

Edit (ANSWER) : Actually I had wrongly put href="", and hence the html file was refenecing itself as the CSS. Mozilla had the similar bug once, and it is from there I got the answer. But everyone's else answers helped me too. Thanks.

推荐答案

实际上,我错误地把href =,因此html文件被重新定义为CSS本身Mozilla有类似的错误一次,从那里我得到了答案。

Actually I had wrongly put href="", and hence the html file was refenecing itself as the CSS. Mozilla had the similar bug once, and it is from there I got the answer.

这篇关于“样式表未加载,因为它的MIME类型,”text / html“不是“text / css”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆