【发布时间】:2018-03-30 05:45:17
【问题描述】:
SA
我知道这个问题已经有多个答案,但没有一个对我有用,因为我的有点奇怪。
基本上我有几个页面说:
index.html
contacts.html
find.html
header.html // main.css files contains styling for this header file which is dynamically loaded into different pages.
问题是,当我将头文件加载到 index.html 或 contacts.html 时,它加载正常,但是当我在 find.html 加载它时,它会弹出浏览器控制台错误消息:
Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead[Learn More] JquerySock.js:1
The stylesheet http://localhost:20012/Duck/main.css was not loaded because its MIME type, “text/html”, is not “text/css”. search
The stylesheet http://localhost:20012/Duck/CSS/search.css was not loaded because its MIME type, “text/html”, is not “text/css”. search
The stylesheet http://localhost:20012/Duck/mainelements/aside.css was not loaded because its MIME type, “text/html”, is not “text/css”.
另外,请求标头content-type 恰好是text/css,但响应却是text/html 不知道为什么。
仅供参考:我正在使用 Debian (Jessie)。 Firefox ESR v52.4.0
【问题讨论】:
标签: javascript html css firefox