求大佬!!!

阿卅 2019-05-15 10:56:00
Refused to apply style from 'http://localhost:8899/font_oo1c7zvf1ve/iconfont.css ' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled. 网上查的是静态路径放服务端环境没办法进行链接。。。但是怎么都不对
...全文
83 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
阿卅 2019-05-16
  • 打赏
  • 举报
回复
这个是用gulp开的监听,html和css单独都可以,但是开了服务之后就没办法链接起来了
丰云 2019-05-16
  • 打赏
  • 举报
回复
你这个错误很奇怪,因为.css都是默认就支持, 你应该考虑的是谁把它移除了,为什么要移除它!!!
丰云 2019-05-16
  • 打赏
  • 举报
回复
如果你的网站是发布在iis里 可以通过iis添加mime type类型解决。 也可以通过配置文件添加配置项解决: <system.webServer> ... ... <staticContent> <remove fileExtension=".css" /> <mimeMap fileExtension=".css" mimeType="text/html" /> </staticContent> </system.webServer>

87,993

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧