& quot;样式表未加载,因为其MIME类型为& quot; text/html& quot;.不是& quot; text/css& quot; [英] "The stylesheet was not loaded because its MIME type, "text/html" is not "text/css"

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

问题描述

我有一个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"不是文本/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 referencing itself as the CSS. Mozilla had the similar bug once, and I got the answer from there.

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

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