Favicon代码 - www.FibonacciTunnel.com [英] Favicon code - www.FibonacciTunnel.com

查看:94
本文介绍了Favicon代码 - www.FibonacciTunnel.com的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,有没有我可以为网址设置Favicon代码的地方:

< link href =" images / Headers&页脚/ favicon.ico的" rel ="快捷图标"类型= QUOT;图像/ X-图标" />

在我的CSS文件中,所以我不必手动将它放在我网站每个页面的标题中?现在我刚刚在< head>中得到它我的索引页面的部分。

另外,第二部分:

上面的代码似乎不适用于IE 7,我需要做些什么来调整它它适用于所有的IE平台吗?具有一百万人的感谢,

托尼

Hello,

Is there a place I can put the Favicon code for the web address line:

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

In the my CSS file so I don't have to manually put it in the header of every page of my website? Right now I've just got it in the <head> section of my index page.

Also, part two:

The code above doesn't appear to work for IE 7, what do I need to do to tweak it so it will work for all IE platforms?



Thanks a million guys,

Tony

推荐答案

CSS用于样式,而不是标记,不,你不能把favion链接放在CSS文件中。

你显示的标记适用于IE。 IE有自己的想法,如果你已经在它有一个图标之前已经访问过该网站,那么获取一个图标来展示它,但这与标记无关。
增加:更正说明了标记按预期将起作用。显示具有空格(风险)和&的路径的具体示例。 (完全错误,除非它是查询的一部分)需要纠正。
CSS is for styles, not markup, and no, you cannot put the favion link in a CSS file.

The markup you show does work for IE.  IE has it's own quirks about getting a favicon to display it if you've already visited the site before it had a favicon, but that is not related to the markup.

Added:  Correcting to say the the markup as you intended will work.  The specific example showing a path with spaces (risky) and an & (wrong entirely unless it's part of a query) needs to be corrected.


这篇关于Favicon代码 - www.FibonacciTunnel.com的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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