Refused to apply style from * because its MIME type (‘text/html‘) is not a supported stylesheet 原因

看见控制台显示错误的点在于iconfont.css ,经过排查,确实是在引入新的样式reset.css出现错误。

但我已经把icon改为stylesheet了,不应该出现错误才对。

在我打开reset.css之后才发现,我的这个文件顶部引用了@import "./iconfont.css";

删掉之后,问题解决了。

猜你喜欢

转载自blog.csdn.net/qq_56079640/article/details/129035302