preferred方式使用网站图示? [英] Preferred way to use favicons?

查看:130
本文介绍了preferred方式使用网站图示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是想一个图标添加到网站更早,寻找实现这个比转储的favicon.ico 文件在网站的根更好的办法

I was trying to add a favicon to a website earlier and looked for a better way to implement this than to dump a favicon.ico file in the root of the website.

我发现了这个可爱的小指南:如何添加一个图标。然而,preferred方法没有在IE(7)工作,第二种方法是老式方法(我辞职自己使用)。

I found this nice little guide: How to Add a Favicon. However, the preferred method did not work in IE (7) and the second method is the old fashioned way (which I resigned myself to use).

是否有跨所有最流行的浏览器工作的第三个方法?

Is there a third method that works across all the most popular browsers?

推荐答案

这是我一直使用的:

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

\r
\r

二是对IE浏览器。第一个是其他浏览器。

The second one is for IE. The first one is for other browsers.

这篇关于preferred方式使用网站图示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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