susansusan
V2EX  ›  问与答

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

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

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