IE9 standard view no load CSS

前端 未结 6 1808
不思量自难忘°
不思量自难忘° 2020-12-07 02:19

I have this problem and maybe I\'m not the only..

If I test my website on FF, Chrome, Safari, IE7, IE8 is perfect.

On IE9 (standard view) It doesn\'t load CS

6条回答
  •  借酒劲吻你
    2020-12-07 02:39

    I'm assuming your local web server is running IIS. If so, just map the .css file extension to the "text/css" MIME type. Like this...

    In IIS v7.x:

    1. Click "MIME Types". You should see a list of file extensions and the associated MIME type.
    2. There should be an entry for the ".css" extension with MIME type = "text/css".
    3. If not, add it by right-clicking anywhere on the list -> Add... -> type in the ".css" extension and "text/css" MIME type.

    In IIS v6:

    1. Right-click the server node -> Properties -> "MIME Types...". You should see a list of file extensions and associated MIME the type.
    2. There should be an entry for the ".css" extension with MIME type = "text/css".
    3. If not, add it by clicking "New..." -> type in the ".css" extension and the "text/css" MIME type.

提交回复
热议问题