【问题标题】:how can I add custom favicon to some websites without favicon in chrome?如何在 chrome 中向某些没有 favicon 的网站添加自定义 favicon?
【发布时间】:2019-01-13 01:15:09
【问题描述】:

fixed tabs

如图所示,有些网站没有网站图标。因此,使用固定选项卡会使它们变得混乱。

【问题讨论】:

  • 至少有几个答案显示了如何使用扩展程序设置选项卡的图标,所以我认为它应该很容易找到。简而言之,使用内容脚本添加带有 rel="icon" 的 <link> 元素。
  • https://chrome.google.com/webstore/detail/bookmark-favicon-changer/acmfnomgphggonodopogfbmkneepfgnh 是我想要的
  • 好。您可以在 devtools 中检查任何扩展的源代码。
  • @wOxxOm 。 thx,我我大~

标签: css google-chrome google-chrome-extension


【解决方案1】:

您可以通过以下方法将网站图标添加到您的网站

<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <title>{$title}</title>
    <link rel="icon" href="../images/favicon.png" sizes="32x32">
    <link href="../css/style.css" type="text/css" rel="stylesheet">
</head>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-08-15
    • 2012-08-07
    • 1970-01-01
    • 2013-11-07
    • 2016-03-17
    • 1970-01-01
    • 2011-02-13
    • 2011-06-20
    相关资源
    最近更新 更多