我在favicon中使用了徽标但没有显示 [英] I used logo in favicon but not displaying
本文介绍了我在favicon中使用了徽标但没有显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的项目包括母版页和内容页。我只想添加一个徽标,使用favicon在浏览器标签上显示。我在我的解决方案资源管理器中将图像保存为项目'fg_logo.ico'
没有任何文件夹。图像尺寸为16X16。我尝试在本地主机但没有显示徽标。
我也可以使用.png扩展名文件吗?
< link rel =iconhref =/ fg_logo.ico类型= 图像/ X-图标/>
解决方案
代替使用重命名fg_logo.ico它作为favicon.ico的
您好,
参考:此链接
谢谢
无需额外做一件事:
尝试放置〜并设置链接元素to runat =server
喜欢:
< link rel =iconhref = 〜/ fg_logo.icotype =image / x-iconrunat =server/>
My project comprises of master page and content pages. I just wanted to add a logo to be shown at browser tab using favicon. I have an image saved as project 'fg_logo.ico' in my solution explorer
without any folder. The image size is 16X16. I tried in local host but not displaying the logo.
Can I use .png extension files too?
<link rel="icon" href="/fg_logo.ico" type="image/x-icon"/>
解决方案
instead of using fg_logo.ico rename it as favicon.ico
Hello ,
Refer: This link
thanks
Nothing to do extra just do 1 thing:
Try placing a ~ and set the link elements to runat="server"
like:
<link rel="icon" href="~/fg_logo.ico" type="image/x-icon" runat="server"/>
这篇关于我在favicon中使用了徽标但没有显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文