How to show local picture in web page?

前端 未结 6 2057
遇见更好的自我
遇见更好的自我 2020-11-29 05:48

I need to show a picture on web page without uploading it. something like

 
         


        
6条回答
  •  迷失自我
    2020-11-29 06:33

    Linking to local image files from remote HTML files used to be possible, but no longer is.

    • In Firefox since version 1.5 (background and config options here)

    • In Internet Explorer I think since Version 8 (I believe I have successfully done this in IE 7, but I can't find hard data)

    • In Chrome probably since forever

    See for example this vulnerability report for why this is a good thing.

    I don't think there is a workaround. You will just have to upload the image first.

提交回复
热议问题