项目场景:

在index.html中引入一个css文件


问题描述

在index.html中引入一个css文件,报如下错误:

Refused to apply style from 'http://localhost:8080/theme/index.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.


原因分析:

提示:写了如下代码:


解决方案:

提示:把type写成css
link rel=“stylesheet” type=“css” href=“…/theme/index.css” id=“themeStyle”
就ok了,不同的报错有不同的解决方法!这个方法不一定适合每一个人!

MIME type (‘text/html‘) is not a supported stylesheet MIME type, and strict MIME checking is enabled相关推荐

  1. 【Django】MIME type (‘text/html‘) is not a supported stylesheet MIME type | uWsgi | Nginx

    问题分析 这是浏览器正常的请求类型分析:互联网上的资源有各种类型,通常浏览器会根据响应头的Content-Type字段来分辨它们的类型.例如:"text/html"代表html文档 ...

  2. : Content type 'text/plain;charset=UTF-8' not supported

    : Content type 'text/plain;charset=UTF-8' not supported

  3. 前端学习(2491):refused to apply style from ‘‘ because its MIME type (‘text/html‘) is not a supported sty

    <link type="text/css" rel="stylesheet" href="./main.css"> 加个type ...

  4. IE去掉input的type=”text”输入内容时出现的X和type=”password”出现的眼睛图标

    从IE 10开始,type="text" 的 input 在用户输入内容后,会自动产生一个小叉叉(X),方便用户点击清除已经输入的文本. 对于type="password ...

  5. JMeter:报错(Content type 'text/plain;charset=UTF-8' not supported)

    在运行脚本的时候报错:(不支持JSON格式) 解决方式:使用正确的传输格式 1.配置HTTP信息头管理器,增加消息头 Content-Type:application/json;charset=UTF ...

  6. Refused to apply style from ‘http://localhost:8080/iconfont.css‘ because its MIME type (‘text/html‘

    Refused to apply style from 'http://localhost:8080/iconfont.css' because its MIME type ('text/html') ...

  7. Server returned HTTP response code 415 for URL , Content type text/plain charset=UTF-8 not support

    客户端 http 请求报错 415,具体如下: Server returned HTTP response code: 415 for URL: http://ip:port/xxx 服务器端 用的是 ...

  8. 使用SpringBoot框架和SpringSecurity框架整合出现because its MIME type ('text/html') is not executable

    前端页面出现: Refused to execute script from 'http://localhost:8080/login' because its MIME type ('text/ht ...

  9. Resource interpreted as Stylesheet but transferred with MIME type text/html: “**.jsp“,主要因为拦截器将所有资源拦截

    1. 问题描述 网页内容正常加载,但是没有样式,而且样式路径是正确的,F12打开控制台看到提示"Resource interpreted as Stylesheet but transfer ...

最新文章

  1. 美国《时代》周刊公布年度25大最佳发明名单
  2. C#异步编程的实现方式(6)——层次任务
  3. poj1182 and 携程预赛2第一题 带权并查集
  4. Android远程桌面助手(B1391)
  5. Hive的安装-Hive的交互方式
  6. C4C Cloud Application Studio做ABSL开发的一些性能方面的最佳实践
  7. Python 学习日记第二篇 -- 列表,元组
  8. java Switch里面的类型问题
  9. php版本个版本区别,PHP版本不一样有什么区别
  10. MongoDB分布式集群分片
  11. php 内容采集_php开发工程师和大数据开发工程师有什么区别
  12. my04_Mysql复制数据一致性校验
  13. 用【快剪辑】给视频打马赛克
  14. cropper.js 裁剪图片并上传(文档翻译+demo)
  15. 怎么批量删除 Word、PPT、PDF 中的第一页、最后一页以及其它指定页?
  16. iOS开发之—— XCODE真机调试设备连接一直忙碌如何处理!(真机调试各种错误提示解决)...
  17. 华南理工大学计算机科学与工程学院篡改,疑篡改研究生复试成绩!华工四人被停职接受调查...
  18. 头歌—练习-Java循环综合练习四之日历打印
  19. 【交换机和路由器的区别】
  20. 【RTSCon 2022】实时通信与价值赋能

热门文章

  1. BZOJ3840: ZCC Loves COT
  2. Sizzle.js分析
  3. 未能加载文件或程序集“System.Web.Http.WebHost, Version=4.0.0.0, Culture=neut
  4. python 循环嵌套例子,【python实例练习1】循环嵌套——“百鸡百钱”问题
  5. 【图像】【OpenCV鱼眼矫正】二、fisheye::initUndistortRectifyMap()源码分析
  6. 原码除法运算(计算机组成原理19)
  7. 解决js报错:TypeError: Cannot read property ‘xxx‘ of undefined
  8. Excel 2010 快速跳转至首行、末行 及 某数据上下段批量选取
  9. 博科思:大数据时代,呼叫中心已进入发展黄金期!
  10. 小红书校招笔试编程题 求表达式 f(n)结果末尾0的个数