我正在 Apache 2.2 中工作。我的本地主机打开了我的网页,但没有应用 CSS,也没有加载背景图像。我不知道为什么。使用 Chrome 开发者工具时,我收到以下警告:
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 文件,但仍然遇到同样的问题。请帮忙!
如果您的浏览器似乎无法加载 CSS,并且您收到 404(未找到)和带有 404 消息的 HTML 页面。尝试加载http://www.xmweb.com/js/calendar/layout-3d.css http://www.xmweb.com/js/calendar/layout-3d.css直接通过浏览器查看页面。
打开网络服务器的错误日志以查看丢失的内容可能会有所帮助。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)