Favicon会显示在管理控制台上,但不会显示在任何浏览器上 [英] Favicon is getting displayed on the admin dashboard but not on any browser

查看:126
本文介绍了Favicon会显示在管理控制台上,但不会显示在任何浏览器上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在根目录中添加了一个favicon.ico文件,并且还将该图像添加为站点标识. Favicon会显示在我的管理页面中,但不会显示在任何浏览器上.这是网站"www.acrosszero.org"的链接

I have added a favicon.ico file in my root directory and have also added the image as site identity. Favicon is getting displayed in my admin pages but not on any browser. Here is the link for the website "www.acrosszero.org"

推荐答案

将.ico图像文件(16x16或32x32像素)添加到要显示该页面的文件夹中.然后,在该页面中,编辑源代码:在<head>标记内(如果不存在,则创建),在<body>标记内,添加:

Add an .ico image file (16x16 or 32x32 pixels) to the folder where is the page you want to display it. Then, in that page, edit the source code: inside the <head> tag (if it doesn't exist, you create), wich is inside the <body> tag, add:

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

然后以这种方式关闭标签:

Then close the tag this way:

</head>

保存页面并重新加载.

这篇关于Favicon会显示在管理控制台上,但不会显示在任何浏览器上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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