Resource interpreted as Stylesheet but transferred with MIME type html/text
解决方法:
1.将content-type改为text/css
2.修改过滤器编码
原因:在编码过滤器时使用response.setContentType=“text/html”导致外部css无法引入。
2023-02-17编程教程下载本文interpreted,resource,引入,报错,样式
Resource interpreted as Stylesheet but transferred with MIME type html/text
解决方法:
1.将content-type改为text/css
2.修改过滤器编码
原因:在编码过滤器时使用response.setContentType=“text/html”导致外部css无法引入。
《外部引入css样式报错Resource interpreted as Stylesheet but transferred with MIME type html/text.doc》
下载本文的Word格式文档,以方便收藏与打印。