Google Chrome extension relative path

后端 未结 3 1900
执念已碎
执念已碎 2021-01-30 18:05

I\'m developing a google chrome extension and I\'m running into a relative path problem. If I give a relative path to an image and open the plugin in a certain page it will look

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-30 18:26

    In some cases you might even use inline base64 encoding of the image. For example,

    
    

    Same you can apply to your CSS. You can find image encoders all over the web.

提交回复
热议问题