简体   繁体   English

为什么我无法从chrome扩展名获取图像文件?

[英]Why i can't get image file from chrome extension?

To the point, i can't call my image using methode like this. 到目前为止,我无法使用这样的方法调用我的图像。

Where's my mistake? 我的错在哪里

'<span style="width:100%;"><img src=' + chrome.extension.getURL('/images/load-data.gif') + '></span>'

SOLVED by wOxxOm wOxxOm 解决

Adding .gif format into web_accessible_resources : .gif格式添加到web_accessible_resources

{
  ...
  "web_accessible_resources": [
    "images/*.png",
    "images/*.gif",
  ],
  ...
}

Thanks. 谢谢。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM