本文介绍了& 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:

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;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-05 18:40