解决方案1:出现这种错误的可能是由于样式都按照text/html格式读取的,解决方案将网页开始的<!DOCTYPE html>删掉 ,具体真正原因为什么删除这行代码就可以正常显示还不得知。

解决方案2:如果调用了response.setContentType(“text/html;charset=utf-8”)只需要把这个方法住注释掉

未注释之前显示效果图:Resource interpreted as Stylesheet but transferred with MIME type texthtml异常解决方法
Resource interpreted as Stylesheet but transferred with MIME type texthtml异常解决方法Resource interpreted as Stylesheet but transferred with MIME type texthtml异常解决方法
注释之后显示效果图:Resource interpreted as Stylesheet but transferred with MIME type texthtml异常解决方法

相关文章:

  • 2022-12-23
  • 2021-07-14
  • 2022-12-23
  • 2021-07-26
  • 2021-10-27
  • 2021-05-03
  • 2022-12-23
猜你喜欢
  • 2021-10-17
  • 2021-05-28
  • 2022-12-23
  • 2021-06-20
  • 2021-09-20
相关资源
相似解决方案