使用URL设置siteimage [英] set siteimage with URL

查看:91
本文介绍了使用URL设置siteimage的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们,

在这里,我需要我们的siteimage以及所有浏览器中URL adressbox中的URL.
当我们采用与Google相关的任何网站时.在地址框中,它将显示带有小图像的地址.如果我们使Code Project在所有浏览器中显示带有该图像的URL,也是如此.

我想知道如何使用asp.net申请我们的项目?我必须在何处放置此图像以进行这样的显示?

请帮忙.

谢谢
Soumya

Hi friends,

Here I need our siteimage come with the URL in URL adressbox in all browsers.
when we take any site related to google. In address box it will show the address with there small image. Also the same if we take Code Project display the URL with that image in all browsers.

I would like to know How to apply in our project using asp.net? Where I have to put this image for displaying like this?

Please help.

Thank you,
Soumya

推荐答案

首先,创建您的图标.它必须很小:16x16像素,并将其另存为Windows图标(.ico)文件.然后:
1)将其另存为网站根目录中的favicon.ico,当您的网站被添加到收藏夹列表时将使用它.

2)将以下内容添加到您的网站代码中:
First, create your icon. It must be small: 16x16 pixels and save it as a windows icon (.ico) file. Then either:
1) Save it as favicon.ico in the root of your website and it will be used when your site is added to the favourites list.

2) Add the following to your website code:
<link rel="SHORTCUT ICON" href="~/your_directory/your_logo.ico">

在这种情况下不需要特定名称.

[edit]糟糕! 〜"在错误的位置-对不起! -OriginalGriff [/edit]

In this case is does not need a specific name.

[edit]Oops! "~" in the wrong place - Sorry! -- OriginalGriff[/edit]


阅读有关Favicon的全部内容,如下所示:

http://en.wikipedia.org/wiki/Favicon [
Read all about Favicons, as they are called, here:

http://en.wikipedia.org/wiki/Favicon[^]
It is a good resoure with a compatibility matrix for different browswers.

Regards,
Manfred


这篇关于使用URL设置siteimage的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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