![](/img/trans.png)
[英]I do not get why the file directory is showing when I start atom live server
[英]Images are showing when I'm viewing the page with live server but when I'm opening the html file in the browser are not showing
我用实时服务器扩展程序在vscode中创建了一个网站。 我添加的图像可以在实时服务器中运行,但是当我分别打开文件时,它们却不能。
这就是我链接图像的方式
SRC = “/图片/ winter.png”
使用相对路径src =“〜/ images / winter.png”或src =“ ./ images / winter.png”如果要单独打开文件,请与服务器分开使用:-src =“ http:www.domainname.com /images/winter.png”。如果您有任何疑问,请告诉我。 谢谢
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.