网站图标代码在我的aspx页面中添加网站图标 [英] favicon code to add the favicon in my aspx page

查看:70
本文介绍了网站图标代码在我的aspx页面中添加网站图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友..我正在尝试在我的网页中添加Favicon,我已经写了一些代码,但是它不能正常工作,所以请您能帮我提供exect代码,我应该在哪里正确使用此代码.使用母版页.

hi friends..I am trying to add favicon in my web page I have written some code but its not working so can you please help me to give the exect code and where should I use this code exectly..I am not using master page.

推荐答案

如果要在asp.net网站中添加收藏夹图标,请参考以下链接:FAVICON Asp.Net [ ^ ]

If you are specifically looking for adding the favicon in asp.net site refer this link: FAVICON Asp.Net[^]

<link runat="server" rel="shortcut icon" href="~/favicon.ico" type="image/x-icon" />
<link runat="server" rel="icon" href="~/favicon.ico" type="image/ico" />



添加这两个标签将有助于IE和FF.



Adding both these tags would help work in both IE and FF.


请参阅此处:如何在网站上添加Favicon [^ ]

下次,请尝试至少自己进行基础研究-该链接是Google搜索
See here: How to Add a Favicon to your Site[^]

Next time, try doing at least basic research yourself - that link was number 5 on a google search for favicon[^]


<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico" />


这篇关于网站图标代码在我的aspx页面中添加网站图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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