标签:css样式 resource css mime text 过滤器 编码 htm type
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
标签:css样式 resource css mime text 过滤器 编码 htm type
原文地址:https://www.cnblogs.com/binhuang01/p/11873462.html