IE9 above CSS file is ignored due to MIME type mismatch other browsers and IE8 the following display normal

Source: Internet
Author: User

What is a MIME type?

MIME (Multipurpose Internet Mail Extensions) Multipurpose Internet Mail Extension type is the type of file that is set up with an extension that is opened by an application, and when the extension file is accessed, The browser will automatically open with the specified application. Many are used to specify some client-customized file names, as well as some ways to open media files.

Why is there an error?

In IE9 above the Internet Explorer, especially in the local environment, without the configuration of the server environment, will encounter outside the chain of CSS files can not be loaded successfully, resulting in the desired effect is not implemented! When you encounter such a problem, you can see in the console of IE's own debugging tool that "SEC7113:CSS is ignored due to MIME type mismatch" error message.

Microsoft has added a file name recognition program from IE9, which appears in standard mode above IE9, and is not a problem in compatibility mode.

IE9 The above CSS is ignored because of MIME type mismatch:

First check whether the link label is complete, rel= "stylesheet" type= "Text/css". Type to use Type= "Text/css". If there is no problem, follow the procedure below

1. Windows key +r, open the Run window

2. In operation, enter "regedit". Clicking the OK button pops up the User Account Control dialog box, asking if you want to allow the prompt dialog box to open the Registry Editor (this dialog box is not in the XP system). Select "Yes". To open the Registry Editor

3. In the Registry Editor, locate the. css folder under HKEY_CLASSES_ROOT. See if the data format under Content type is TEXT/CSS. If the format is not, modify it to text/css.

IE9 above CSS file is ignored due to MIME type mismatch other browsers and IE8 the following display normal

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.