图标在我的网站的所有网页 [英] Favicon for all the pages in my website

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

问题描述

我已经学会了添加图标为一个网页的方式是让页面以下行。

I've learned that the way to add favicon for a web page is to have the following lines in the page.

<link rel="SHORTCUT ICON" type="image/x-icon" href="http://mysite.com/faviconfilename.ico"/>
<link rel="icon" type="image/x-icon" href="http://mysite.com/faviconfilename.ico" />

我应该在每一个页面上我的网站添加此code?我使用Apache - Tomcat集群服务页面。是否有任何其他简单的方法来做到这一点?

Should i add this code in each and every page my site has?? I use Apache - tomcat clustering to serve pages. Is there any other easy way to do this?

推荐答案

这是通常足以放置一个名为favicon.ico的在您的网站的根文件。

It is usually enough to place a file called "favicon.ico" in the root of your website.

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

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