开发者

HTML img tag src with symlinked path not work

开发者 https://www.devze.com 2022-12-07 20:49 出处:网络
is there a way to show symlinked img correctly via src at开发者_StackOverflow中文版tribute? The server is running by express, and the symlinked image is serving by static file.

is there a way to show symlinked img correctly via src at开发者_StackOverflow中文版tribute?

The server is running by express, and the symlinked image is serving by static file.

  • use symlink file <img src="http://server:3000/public/1-symlinked.jpg" />, it doesn't work.

  • use normal file <img src="http://server:3000/public/1.jpg" />, it works.


first you have to save the image in your HTML Folder than you have to open the folder in your vs code than you can use tis tag it will work <img scr="your image name "> eg : <img scr= " image.png">

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号