javascript - 扩展程序页面中的 Chrome 图标

标签 javascript google-chrome google-chrome-extension

我的 chrome 扩展程序在 list 中声明了一个图标,该图标完美地显示在 chrome 右上角的图标托盘中。声明如下:

"icons": { 
        "1": "images/icon.png"
        },

但是,当 (1) 安装程序和 (2) 在 Chrome 扩展页面中时,我仍然会看到“齿轮”图标。

我在 list 中缺少什么来正确设置 images/icon.png 中的图像以显示在这两个位置?

最佳答案

使用16 , 48128作为图像 width 对应的对象的属性,来自161281将使用 width 指定图像的1px

"icons": { "16": "icon16.png",
           "48": "icon48.png",
          "128": "icon128.png" }

关于javascript - 扩展程序页面中的 Chrome 图标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38679655/

相关文章:

javascript - AWS S3 putobject 以及使用 Rekognition 进行 DetectFaces 之后

google-chrome - 使用 SSL bump 时无法连接到真实站点 ssl 错误

javascript - 基于 Chrome 的 JavaScript 性能滞后

javascript - IndexedDB 的 Chrome devtools 扩展

javascript - 我可以使用 Google Chrome 扩展程序阻止 alert() 吗

javascript - 有没有办法在 highcharter wordcloud 中使用两个系列(或某种组)?

javascript - AngularJS:为什么我的按钮在 $index 的 ng-repeat track 中仍然有效

javascript - DIV 宽度不合逻辑地卡住了,无法更改

javascript - 需要调试帮助 : Prevent backspace from navigating back

javascript - chrome 扩展中使用的 webkitNotifications.createNotification 未捕获的安全异常