zoukankan      html  css  js  c++  java
  • because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checkin

    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系统上,主要路径大小写问题。

  • 相关阅读:
    mybatis-generator.xml
    模板下载
    任务导出
    订单导出
    创建指定日期任务
    字符串的知识
    数组元素反转
    JVM 中知识
    Redis介绍
    JsonP
  • 原文地址:https://www.cnblogs.com/fanbi/p/11940916.html
Copyright © 2011-2022 走看看