Internet Explorer “CSS was ignored due to mime type mismatch” on local files (no server)

后端 未结 5 1494
忘掉有多难
忘掉有多难 2020-12-03 18:41

I\'m developing an application which creates a HTML report at the end, it outputs the js and css files separately then loads the files normally. But Internet Explorer 8-10+

5条回答
  •  感情败类
    2020-12-03 19:17

    I was using Tomcat and JSP. I had to put : <%@page contentType="text/css" %> at the top of the CSS file and then tomcat serves it as a CSS mimetype.

提交回复
热议问题