IE9 Not applying linked style sheets

后端 未结 2 1610
既然无缘
既然无缘 2021-01-07 04:44

I have a wierd problem. I developed a site that works fine in most browsers. I just upgraded to IE9 and none of my styles are being applied. I\'m viewing this on my local pc

相关标签:
2条回答
  • 2021-01-07 05:10

    Codler's link, combined with the fact that "I'm viewing this on my local pc as this site is not on the internet just yet," almost certainly gives the answer. When serving files from your local machine, it is usually pretty unlikely that the correct MIME type gets sent.

    Generally, to test a website, you need some kind of web server---even if it's just one you set up on your own machine. The file system is really not meant for serving web pages, and behaves in unpredictable ways (e.g. Firefox can't do web fonts on the file system, IIRC).

    0 讨论(0)
  • 2021-01-07 05:31

    Maybe your server do not send the right mime-type http://msdn.microsoft.com/en-us/library/gg622939%28VS.85%29.aspx

    0 讨论(0)
自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题