开发者

ASP.NET MVC 2 RTM - favicon not displayed in Internet Explorer

开发者 https://www.devze.com 2022-12-24 15:42 出处:网络
I have the following two lines in the head section in my masterpage: <link r开发者_JS百科el=\"shortcut icon\" href=\"/Content/Images/favicon.ico\" type=\"image/x-icon\" />

I have the following two lines in the head section in my masterpage:

<link r开发者_JS百科el="shortcut icon" href="/Content/Images/favicon.ico" type="image/x-icon" />
<link rel="icon" href="/Content/Images/favicon.ico" type="image/ico" />

However, the favicon is not displayed in Internet Explorer (version 6, 7, 8). In Firefox and Safari the favicon works fine. I have even tried to replace href with the URL to my website (http://www......./Content/Images/favicon.ico) but that still does not work in Internet Explorer. Am I missing something?


Try this post http://weblogs.asp.net/nmarun/archive/2010/03/14/asp-net-mvc-2-throws-exception-for-favicon-ico.aspx

0

精彩评论

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