简体   繁体   English

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

[英]Wordpress resource interpreted as stylesheet but transferred with mime type text/html

I made a little change in functions.php and now some stylesheets don't load and also I'm getting this error in the console everytime I access to my web page: 我对functions.php进行了一些更改,现在某些样式表无法加载,并且每次访问我的网页时,控制台都会出现此错误:

resource interpreted as stylesheet but transferred with mime type text/html wordpress 资源被解释为样式表,但通过mime类型text / html wordpress传输

The change I did is update the version of jquery to the latest 我所做的更改是将jquery的版本更新为最新版本

I could resolve this: 我可以解决这个问题:

By mistake I added 3 white lines in the end of the file functions.php after the "?>". 我错误地在“?>”之后的文件functions.php的末尾添加了3条白线。

I deleted those lines and now it works ok. 我删除了这些行,现在可以正常工作了。

Thanks. 谢谢。

i had this problem too, by clearing every thing in history of browser; 通过清除浏览器历史记录中的所有内容,我也遇到了这个问题; it solved! 解决了! this problem is about browser. 这个问题与浏览器有关。 if you want be sure, first test it in another browser. 如果要确定,请先在其他浏览器中进行测试。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 资源解释为样式表,但使用 MIME 类型 text/html 传输:“<url> ”</url> - Resource interpreted as Stylesheet but transferred with MIME type text/html: “<URL>” 资源解释为样式表,但使用MIME类型text / html - apache2进行传输 - Resource interpreted as Stylesheet but transferred with MIME type text/html - apache2 Wordpress样式表问题:资源被解释为样式表,但以MIME类型传输 - Wordpress Stylesheet Issue: Resource interpreted as Stylesheet but transferred with MIME type nginx 无法识别 css 和图像:资源被解释为样式表,但使用 MIME 类型 text/html 传输 - css and images not recognized by nginx: Resource interpreted as Stylesheet but transferred with MIME type text/html Symfony CMF CSS未加载:资源被解释为样式表,但以MIME类型text / html传输: - Symfony CMF CSS not loading: Resource interpreted as Stylesheet but transferred with MIME type text/html: 资源被解释为样式表,但是使用MIME类型text / html和在PHP中生成的css进行传输 - Resource interpreted as Stylesheet but transferred with MIME type text/html with css generated in PHP 资源解释为图像,但使用MIME类型text / html,curl,php进行传输 - Resource interpreted as Image but transferred with MIME type text/html, curl, php 资源被解释为图像,但由于MIME类型text / html错误而传输 - Resource interpreted as Image but transferred with MIME type text/html error 资源解释为脚本,但使用MIME类型text / html:JSONP传输 - Resource interpreted as Script but transferred with MIME type text/html : JSONP 资源被解释为图像但使用 MIME 类型 text/html 传输 - Magento - Resource interpreted as image but transferred with MIME type text/html - Magento
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM