Can I use an image from my local file system as background in HTML?

后端 未结 5 1895
粉色の甜心
粉色の甜心 2020-12-05 09:12

I\'ve got an HTML document hosted on a remote web server. I\'m trying to have one of the elements on the web page use an image file from my local file system as its backgrou

5条回答
  •  盖世英雄少女心
    2020-12-05 10:13

    FireFox does not allow to open a local file. But if you want to use this for testing a different image (which is what I just needed to do), you can simply save the whole page locally, and then insert the url(file:///somewhere/file.png) - which works for me.

提交回复
热议问题