开发者

IIS 6 + MVC 3 + CSS - With Chrome/FireFox/Safari the css styles are not displaying >>HELP

开发者 https://www.devze.com 2023-04-03 21:04 出处:网络
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 Si

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".

0

精彩评论

暂无评论...
验证码 换一张
取 消