CSS not rendered in IE 10

前端 未结 4 902
再見小時候
再見小時候 2021-01-26 02:09

CSS files not rendered in IE 9 and 10 but works good in compatibility mode.

I am the following error get \"SEC7113: CSS was ignored due to mime type mismatch\" in IE 10

相关标签:
4条回答
  • 2021-01-26 02:40

    Try to specify the attribute type="text/css" in your tag. Place your style tag in <head> section.

    0 讨论(0)
  • 2021-01-26 02:42

    Please ensure that the CSS file gets delivery with the correct "Content-Type" from the server. It must be "text/css". Use the developer console to determine the current type. Potentially you need to adjust/create the MIME type mapping (e.g. for httpd).

    hth

    0 讨论(0)
  • 2021-01-26 02:48

    It has an answer, summary would be:

    As due to MIME type mismatch css was ignored in IE 9 and 10. The MIME type can be correct by utility called File TypesMan It is freeware created by NirSoft. It turned out that the MIME type of .css had been changed to text/plain, preventing IE from rendering my styles. using FileTypesMan to change it back to text/css fixed the problem.

    1. Download FileTypesMan from the NirSoft site. Use the links near the bottom of the page to select the correct version for your operating system (there are different versions for 32-bit, 64-bit, and Windows 98/ME).

    2. Unzip the files to a local folder, and double-click FileTypesMan.exe.

    3. When FileTypesMan has finished listing all file types, scroll down in the top pane to find .css.

    4. Double-click to edit the settings.

    5. Change the value to text/css in the MIME Type field in the dialog box that opens.

    6. Click OK. Job done.

    IE 10 should now behave itself (well, at least as far as rendering style sheets is concerned).

    Not my work: Its not my own search, you can see this here: https://stackoverflow.com/a/18791928/1762944

    I hope this fixed you!

    I was wondering that you are not writing type="text/css" but you said, that you are! So I found this the next helpfull article! It has the same issue as yours. SEC7113: CSS was ignored due to mime type mismatch

    I just did a simple Google search for the issue, and this was the first result! You should have searched for the issue.

    0 讨论(0)
  • 2021-01-26 03:04

    I was having similar problem with an embedded micro-controller (not a lot of control over the server changing content type). Not sure if this applies but I found going into Settings->Compatibility View Settings and adding the IP (site) address the CSS was accepted and the page rendered properly.

    0 讨论(0)
提交回复
热议问题