I deployed my mvc 3 app to IIS 6 (with ntlm) and the site functions great with Internet Explorer (IE) however when I try and view the site with Chrome/FireFox/Safari the styles which are located in Site.css are not being applied.
I can see in Firebug that the css was found. Within Firebug however I get an message "There are no rules. You can create a rule."....so the css is found however for some reason it doesn't look for FireFox (or others) as a style sheet?
The css is reference via the _layout.cshtml as shown...
<link href="https://{www.testsite.com}/{applicationName}/Content/Site.css" rel="stylesheet"开发者_运维问答 type="text/css" />
I am at wits end as to why it is not rendering for me? Ideas?
The fix to this problem was to add a custom MIME type associating .CSS files with the type "text/css".
精彩评论