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

  • 相关阅读:
    request:getParameter和getAttribute区别
    JSP登录页面大小
    单例模式详情
    关于HTML的总结
    遍历HashMap的四种方法
    三层开发原则
    java日期
    oracle6
    tomcat
    Linux命令
  • 原文地址:https://www.cnblogs.com/fanbi/p/11940916.html
Copyright © 2011-2022 走看看