码迷,mamicode.com
首页 > Web开发 > 详细

because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checkin

时间:2019-11-27 12:18:37      阅读:185      评论:0      收藏:0      [点我收藏+]

标签:chrome   dia   方案   style   rom   小结   ict   static   错误   

1 前言

浏览器报错误(chrome和firefox都会):because its MIME type (‘text/html‘) is not a supported stylesheet MIME type, and strict MIME checkin...

2 解决方案

  <link rel="stylesheet" href="../../../Static/css/common/common.css" media="all">

//删除rel属性或者删除rel和media属性都可以,改为如下:
 <link href="../../../Static/css/common/common.css" media="all">
 <link href="../../../Static/css/common/common.css">

3 小结

同时也会伴随JS不支持等,解决了CSS问题,JS警告也就会消失。如果资源找不到,又在Linux系统上,主要路径大小写问题。

because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checkin

标签:chrome   dia   方案   style   rom   小结   ict   static   错误   

原文地址:https://www.cnblogs.com/fanbi/p/11940916.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!