我的 chrome 扩展程序在 list 中声明了一个图标,该图标完美地显示在 chrome 右上角的图标托盘中。声明如下:
"icons": {
"1": "images/icon.png"
},
但是,当 (1) 安装程序和 (2) 在 Chrome 扩展页面中时,我仍然会看到“齿轮”图标。
我在 list 中缺少什么来正确设置 images/icon.png 中的图像以显示在这两个位置?
最佳答案
使用16
, 48
和128
作为图像 width
对应的对象的属性,来自16
至128
。 1
将使用 width
指定图像的1px
"icons": { "16": "icon16.png",
"48": "icon48.png",
"128": "icon128.png" }
关于javascript - 扩展程序页面中的 Chrome 图标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38679655/