Favicon图标在ie7中不起作用 [英] favicon icon not working in ie7

查看:77
本文介绍了Favicon图标在ie7中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

fevicon图标没有显示在地址栏或选项卡中,也没有任何帮助.以下是代码

fevicon icon is not displaying in either address bar nor tab plz any one help.following is the code

<head id="head1" runat="server">
    <title>Untitled Page</title>
    <link id="Link1" runat="server" href="favicon.ico" rel="shortcut icon" type="image/x-icon"/>
    <link id="Link2" runat="server" href="favicon.ico" rel="icon" type="image/ico"/>
</head>

推荐答案

尝试放置~
Try placing a ~
<link runat="server" rel="shortcut icon"href="~/favicon.ico" type="image/x-icon" />
<link runat="server" rel="icon" href="~/favicon.ico" type="image/ico" />


这也需要在页面的<head> 部分中完成.

类似的答案可能对您有所帮助;看看
在ASP.NET中添加favicon.ico [ ^ ]


This also needs to be done in the <head> section of the page.

Similar answer might be helpful for you; have a look
Add favicon.ico in ASP.NET[^]


我不认为该方法适用于任何浏览器!
请参阅此处:如何将Favicon添加到您的网站 [
I''m not convinced that that approach will work with any browser!
See here: How to Add a Favicon to your Site[^]


这篇关于Favicon图标在ie7中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆