原文:layer报错Refused to apply style from 'http://192.168.101.12:5502/skin/layer.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled的解决方法

前言 最近在使用layui框架的独立组件layer时遇到了如下报错,这让我有点懵逼 我是直接在官网把layer下载到本地,然后把里面的layer.js和layer.css分别引入到自己的项目中, 路径检查过几次没有问题,并且layer.js和layer.css引入也都能正常使用,但控制台却报了上图的错误提示。 我在本地的layer.css路径是: lt link rel stylesheet h ...

2021-06-01 18:21 0 1406 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM