CSS已加载但未应用 [英] CSS loaded but not applied

查看:59
本文介绍了CSS已加载但未应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

很抱歉,如果我重复一遍,但找不到答案.这是我的网站: http://www.stolems.com/pl

Sorry if I repeat, but I couldn't find the answer. This is my website: http://www.stolems.com/pl

我的问题是css文件已加载但未应用.我在FF,Chrome,Safari和FF中都尝试过.但是,当我以标签样式加载样式时,它可以工作.我能做什么?我注意到我的文件css是mime类型的text/html,应该是text/css吗?

My problem is that files css loaded but doesn't applied. I tried in FF, Chrome, Safari and still nothing. But when I load style in tag style it works. What can I do? I noticed that my files css are mime type text/html it should be text/css?

除了我在此站点上加载的管理仪表板和模板之外.管理员信息中心有效,模板无效.

Besides I loaded at this site admin dashboard and template. Admin dashboard works, template not..

推荐答案

您的服务器正在使用 MIME 类型的 .css 文件提供 text/html .它应该是 text/css .只需告诉您的服务器管理员,他们就会为您修复它.

Your server is serving .css files with MIME type text/html. It should be text/css. Just tell your server administrator and they will fix it for you.

如果您在Chrome浏览器中看到控制台,则会显示:

If you see the console in chrome, it says:

资源被解释为样式表,但以MIME类型 text/html 传输.

在Firefox中:

未加载样式表,因为其MIME类型"text/html" 不是"text/css" .

这也发生在您的 .js 文件中.

This happened for your .js files too.

这篇关于CSS已加载但未应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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