Write the page in the Chrome,fireforks and other pages on the normal display, but after the ie9,ie10 is completely no style, error message is CSS because Mime type mismatch and is ignored, the following to share with you the relevant answers to this question
When the page is written, it appears normal on the Chrome,fireforks and other pages, but it is completely out of style after being replaced by IE9. IE is really a wonderful freak. Its error message is ' CSS is ignored because of Mime type mismatch ', which means that all the. css files are not working. Went online to look up some information, there are a lot of questions related to the answer.
The first thing to understand is what a mine type is. A MIME type is a type of file that is set up for a specified extension, and is opened by an application, and when the extension file is accessed, the browser automatically opens with the specified application, specifying some client-defined file names, as well as some media file opening methods. The main related to it is the Web. xml file. Web. XML is a very important configuration file in a network program. When a Web project is started, the Web container reads its config file, XML, and reads the two nodes <listener> and <context-param>.
In IE9 's new security mechanism, it is required that the HTTP header information returned by the Web server Content-type must indicate that the mime-type of the CSS file is ' text/css ', otherwise IE9 will not handle it as a CSS file. If you want to IE9 also correctly display the CSS file definition of the style, you need to modify the server side returned to the client's CSS file HTTP header information corresponding to the MIME type.
How to modify the returned CSS MIME information:
There are different ways to fix the return MIME information of the CSS file, one is to modify the server configuration or the server program, and output the correct mine header information for the CSS file. This to the IIS settings to operate, for their own server is feasible, but for the use of virtual host owners is not and easy to do, here is not elaborate.
Another alternative approach is to require the server to output the correct CSS mine information by configuring the Web. xml file.
Add content to Web. xml:
<mime-mapping>
<extension>css</extension>
<mime-type>text/css</mime-type>
</mime-mapping>
Successfully resolved.
Ie9,ie10 CSS is ignored due to MIME type mismatch (RPM)