到目前为止,我无法使用这样的方法调用我的图像。
哪里是我的错?
'<span style="width:100%;"><img src=' + chrome.extension.getURL('/images/load-data.gif') + '></span>'
由wOxxOm解决
将.gif
格式添加到web_accessible_resources
:
{
...
"web_accessible_resources": [
"images/*.png",
"images/*.gif",
],
...
}
谢谢。