为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

FF Quantum: Top Sites thumbnail for my website?

  • 2 个回答
  • 2 人有此问题
  • 2 次查看
  • 最后回复者为 retrogaming

more options

Hello,

Websites like Facebook, Imdb or Twitter have full size custom thumbnails instead of the partial screencap. How are they loaded to the Top Sites page? Is it automatic like Favicon or though a meta tag like like Facebook's og:image? How does it work? What's the official specification? I'd like to update my website ( http://www.1up-games.com ) with one. I searched Google and here but couldn't find any information on this topic; I suppose I failed to formulate the query correctly.

Hello, Websites like Facebook, Imdb or Twitter have full size custom thumbnails instead of the partial screencap. How are they loaded to the Top Sites page? Is it automatic like Favicon or though a meta tag like like Facebook's og:image? How does it work? What's the official specification? I'd like to update my website ( http://www.1up-games.com ) with one. I searched Google and here but couldn't find any information on this topic; I suppose I failed to formulate the query correctly.

所有回复 (2)

more options

Looking through the top sites that I have, I believe it looks for any of the following:

A <link rel="shortcut icon"> with some minimum resolution. A <link rel="apple-touch-icon"> with some minimum resolution. A regular favicon with some minimum resolution.

I'm not sure what the exact minimum resolution is, but 128x128px images appear to work fine, so I would try that.

more options

Thanks, I'll try that!

But there is no official snippet on this ? Mozilla has all kinds of documentation pages, I can't believe there's no official word on which relationship value to use.

Oh, I just found this:

The media, type and sizes attributes allow the browser to select the most appropriate icon for its context. If several resources match, the browser will select the last one declared, in tree order. As these attributes are merely hints, and the resources may be inappropriate upon further inspection, the browser will then select another one, if appropriate.

Note: Apple's iOS does not use this link type, nor the sizes attribute, like others mobile browsers do, to select a webpage icon for Web Clip or a start-up placeholder. Instead it uses the non-standard apple-touch-icon and apple-touch-startup-image respectively.

The shortcut link type is often seen before icon, but this link type is non-conforming, ignored and web authors must not use it anymore.

From "icon" section of https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types

That helps clarify a few things.

由retrogaming于修改