Resolves a local out-of-chain CSS problem that cannot be loaded due to MIME type issues above IE9

Source: Internet
Author: User

Because of the Web learning process encountered in Ie9+ browser does not recognize the external CSS link problem, fee Dickens finally found a solution, method for reprint a Netizen's, link as follows: http://oxoxo.blog.51cto.com/9301862/ 1578967, words not much to say, directly say the solution:

Vaguely remember, this seems to be the second time I have encountered the problem, only remember the first time, small brother did not take seriously, confused on the hands-off!! When this time again encountered the problem, brother Nu, must solve it!

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, and led to the desired effect is not realized, really very KB Ah!! When you encounter such a problem, you can see in the console of IE's own debugging tool that "SEC7113:CSS is ignored because of MIME type mismatch" error, what is MIME type mismatch? Here's a description of what MIME types are:

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. Http://baike.baidu.com/view/160611.htm?fr=aladdin

Know what is the MIME type, I seem to understand why IE9 above the IE browser does not recognize the external chain of CSS files, it should be because Microsoft has added a file name recognition program after IE9, this is in the IE9 above the standard mode will appear, in compatibility mode there is no problem. So, how do we solve the problem? Small size elder brother also took 27 years to nurse the vigor to finally find the reason drops! Because there are so many different answers on the web, most of them can't be solved, which can be solved by saying let's configure the local server, under what IIS to configure the CSS file type value. I was dizzy when I heard, the key is I am still not very familiar with the background server!

Nonsense not to say, directly affixed to the answer, and then put the answer before the first to introduce a file: fileTypesMan.exe files.

This is the key to solving the problems we encounter:

Filetypesman is a gadget used to view the registered file types in the system. On the File Types tab in the [3] Folder Options, you can also view the registered file types, which displays a list of all file extensions and registration types on your computer. For each file type, the following information is displayed: type name, Description, MIME type, type of consciousness, flag, browser flag. Filetypesman also allows you to easily edit the properties and flags of each file type, as well as it allows you to add, edit, and delete actions for file types. Http://baike.baidu.com/view/7758078.htm?fr=aladdin

Solution:

1, download file Typesman, in Baidu directly search can find.

2, decompression run just download the file TypesMan.exe files, in the run time may take a few 10 seconds please wait patiently.

3. Find it in the list. CSS Double click to enter the ' Edit file type ' interface.

4. In MIME type, modify the type to Text/css

5, save, click OK then OK!

Then run your code from the new local to KO the problem! The following file TypesMan.exe files are attached. Hope to help you, ha!

File link Address: Http://files.cnblogs.com/files/siyuetian0606/FileTypesMan.rar

Resolve IE9 above due to MIME type problem unable to load local outside-chain CSS problem

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.