V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
zjsxwc
V2EX  ›  程序员

html 里怎么让浏览器缩略图只出现 logo 而不是截屏

  •  
  •   zjsxwc ·
    zjsxwc · 2020-03-04 08:47:11 +08:00 · 1509 次点击
    这是一个创建于 1507 天前的主题,其中的信息可能已经有所发展或是发生改变。

    浏览器里怎么让缩略图只出现 logo 而不是截屏,

    如图:

    whylogo

    这里知乎、github、淘宝、v 站都是 logo,但京东、有道字典、百度地图是截屏

    是 html 哪个 meta 数据的作用吗?

    leisure
        1
    leisure  
       2020-03-04 09:24:14 +08:00
    favicon
    zjsxwc
        2
    zjsxwc  
    OP
       2020-03-04 09:51:43 +08:00
    @leisure
    不是 favicon,是 icon,比如 v 站没有 favicon 只有 icon

    <link rel="icon" sizes="192x192" href="/static/img/v2ex_192.png" />
    <link rel="shortcut icon" href="/static/img/icon_rayps_64.png" type="image/png" />
    Torpedo
        3
    Torpedo  
       2020-03-04 10:35:27 +08:00
    你看这个插件取的什么
    pytth
        4
    pytth  
       2020-03-04 10:39:23 +08:00
    写了个 API,可以获取网站的 favicon
    ----------------------------------------------
    http://www.likeyunba.com/api/get_favicon.php?url=http://www.baidu.com
    otakustay
        5
    otakustay  
       2020-03-04 12:39:54 +08:00
    @zjsxwc 那啥,link rel="icon"学名就叫 favicon……不存在 link rel="favicon"这种东西
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   863 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 21:51 · PVG 05:51 · LAX 14:51 · JFK 17:51
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.