如何找出其中的favicon浏览器实际使用 [英] How to find out which favicon a browser actually uses

查看:159
本文介绍了如何找出其中的favicon浏览器实际使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有使用真正的favicon发生器一个源文件生成一组图标图像汽车的一个新的网站,主要有:

I have a new website with a set of favicon images auto generated from a source file using Real Favicon Generator, and there are:


  • 9苹果网站图标

  • 1的Andr​​oid图标

  • 3名为网站图标

  • 1 Safari浏览器固定 SVG

  • 1 JSON 清单

  • 1套微软平铺图像/颜色

显然大多数这些可以被放置为各自的供应商 - 苹果,微软砖等

Obviously most of these can be placed for their respective vendors - Apple, Microsoft tiles, etc.

我有在Firefox的运行网站的一个问题,我想使用它来改变图标,但我不知道哪一个是实际使用?

I have an issue in that running the website on Firefox, I want the favicon it uses to change but I do not know which one it actually uses?

我读<一个href=\"http://stackoverflow.com/questions/24964193/how-does-an-os-pick-up-the-correct-ico-favicon-size\">this问题但这里说的答案是的不正确

I have read this question but the stated answer on here is incorrect and

Firefox和Safari浏览器将使用自带最后一个图标。

Firefox and Safari will use the favicon that comes last.

不再是真实的。

显然,这是一个耗时的重复办理〜15幅地发现,大干快上一个浏览器改变了一个,我居然发现,火狐42选择了96x96的尺寸图标,而不是最后一个presented。

Obviously it's a time consuming repetition to go through ~15 images to find the one that gets changed on one browser, and I actually found that Firefox 42 selects the 96x96 dimension favicon, rather than the last one presented.

是有办法的 [除了试验和错误] 的加载一个页面,然后找到在浏览器定义哪些图像从HTML 用作该浏览器的页面图标?

Is there a way [aside from trial and error] to load a page and then find a declaration in the browser defining which image from the HTML head is used as the page favicon in that browser?

有是一个不完整的参考名单 这里 。然而,这种遗漏了各种版本和各种操作系统,而我只能假设这些细节从哪里尝试和错误中。

There is an incomplete reference list here. However, this misses out various versions and various OS, and I can only assume these details where found from trial and error.

是很有用的,各个环节而对这个问题的解决方案提供一个单一的URL结果进行自动化处理,如

While this is useful, the various links and solutions on that question give a single URL result for an automated process, such as

http://www.google.com/s2/favicons?domain=www.domain.com

在哪个返回一个有效的favicon工作正常,但它不返回时,我测试了它,我的浏览器使用的图标。

Which works fine in returning a valid favicon but it does not return the favicon that my browser uses when I tested it.

从问题的其他链接都差不多,大多只返回一个16x16的图标,许多显然没有返回使用的图像。有些可能没有返回使用的图像......这是很难区分,有时16x16px!

Other links from that question are similar, most only returned a 16x16 favicon and many clearly did not return the image used. Some probably didn't return the image used... it is hard to differentiate 16x16px sometimes!

推荐答案

您可以使用RealFaviconGenerator的兼容性测试 。该测试将询问哪图标,你看到的。但有一个奇怪的问题:测试是不是真正为最终用户,所以你必须右键单击对应您看到图标显示的图像,检查它,并期待在 ALT IMG 标签的属性。但将prevent你从20+的图像玩,使他们不同。要容易得多!

You can use the Compatibility test of RealFaviconGenerator. The test will ask you which icon you see. But there is a twist: the test is not really for the end-user, so you will have to right-click the image corresponding to the icon you see, inspect it, and look at the alt attribute of the img tag. But that will prevent you from playing with 20+ images to make them different. Much easier!

全面披露:我RealFaviconGenerator的作者

Full disclosure: I'm the author of RealFaviconGenerator.

请注意:我很想在你的调查,以确定你所提到的答案(我是他的作者)

Note: I would be interested in your investigations to fix the answer you mention (I'm his author).

这篇关于如何找出其中的favicon浏览器实际使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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