简体   繁体   English

图像未在 html 中呈现。 (<img> )

[英]Image not rendering in html. (<img>)

I believe my files are located in the same folder but for some reason it's just not working.我相信我的文件位于同一个文件夹中,但由于某种原因它无法正常工作。 Here is the screen shot of my folder.这是我的文件夹的屏幕截图。 The screen shot of my folder我的文件夹的屏幕截图

And here is the code... (The code is in index.html shown in the screen shot.)这是代码...(代码在屏幕截图中显示的 index.html 中。)

<div>
  <img src="Tawsk.jpg" alt="Tawsk" width="460" height="345">
</div>

I don't know what the problem is... It will be great if you could provide me with some guidance.我不知道问题是什么...如果您能给我一些指导,那就太好了。 Thanks.谢谢。

you forget some syntax to write "./" on your code你忘记了一些在你的代码上写“./”的语法

 <div> <img src="./Tawsk.jpg" alt="Tawsk" width="460" height="345"> </div>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM