susansusan
V2EX  ›  问与答

无意中发现,进入 V2EX 的自己的主页,浏览器图标会变成自己头像,咋做到的呢?

  •  
  •   susansusan · Apr 29, 2020 · 2139 views
    This topic created in 2208 days ago, the information mentioned may be changed or developed.
    大家点自己的名字,是不是也是看到浏览器原本显示 favicon.ico 的地方变成了你的头像呢?
    这是咋做到的呢?
    2 replies    2020-04-29 18:56:06 +08:00
    linauror
        1
    linauror  
       Apr 29, 2020
    html 里面有这么一段
    `
    <link rel="shortcut icon" href="https://cdn.v2ex.com/avatar/45e3/4d39/247796_large.png?m=1502313831" type="image/png" />

    `
    susansusan
        2
    susansusan  
    OP
       Apr 29, 2020
    嗯嗯 shortcut icon 明白了 谢谢!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2985 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 364ms · UTC 07:51 · PVG 15:51 · LAX 00:51 · JFK 03:51
    ♥ Do have faith in what you're doing.