资源间preTED的样式表,但MIME类型纯文本传输的问题? [英] resource interpreted as stylesheet but transferred with mime type text plain issue?

查看:253
本文介绍了资源间preTED的样式表,但MIME类型纯文本传输的问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Apache 2.2的工作。我的本地主机打开我的网页,但没有应用并不会加载背景图片CSS。我不知道为什么。使用Chrome开发者工具,我得到了以下警告:

I am working in Apache 2.2. My localhost opened my web page, but there is no CSS applied and background images were not loaded. I don't know why. Using the Chrome developers tool I got the following warnings:

resource interpreted as stylesheet but transferred with mime type text plain 
resource interpreted as stylesheet but transferred with mime type text html
resource interpreted as script but transferred with mime type text html
GET http://www.xmweb.com/js/calendar/layout-3d.css 404 (Not Found)
resource interpreted as Image but transferred with mime type text html

我不明白这个问题。它是在httpd.conf文件中的问题?我尝试添加.htaccess文件,但还是我得到了同样的问题。请帮助!

I do not understand this issue. Is it a problem in the httpd.conf file? I tried to add a .htaccess file, but still I got the same issue. Please help!

推荐答案

如果看来你的浏览器无法加载CSS,你得到一个404(未找到)和HTML页面404的消息。尝试加载 http://www.xmweb.com/js/calendar/layout- 3d.css 通过浏览器直接看网页。

If seems that your browser cannot load the CSS, and you are getting a 404 (Not found) and a HTML page with a 404 message. Try to load http://www.xmweb.com/js/calendar/layout-3d.css directly via your browser and look at the page.

这可能有助于打开你的web服务器的错误日志看看什么缺失。

It may help to open up the error log of your webserver to see whats missing.

这篇关于资源间preTED的样式表,但MIME类型纯文本传输的问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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