【问题标题】:Images not showing in code written in HTML图像未显示在用 HTML 编写的代码中
【发布时间】:2020-11-08 15:27:43
【问题描述】:

我想在一个 html 文件中显示四个不同的图像,并且我使用“源/文件”方法,但它们没有显示。只显示损坏的图像标志。

<html> 
   <head> 
       <title> Insertar imágenes en una web </title> 
       <meta charset="utf-8"> 
   </head>
   <body> 
       <p>Imagen de una boda</p> 
       <img src="Asignaciones%2520de%2520informatica/boda.jpg"> 
       <p>Imagen de un mercado</p>
       <img src="Asignaciones%2520de%2520informatica/mercado.jpg"> 
       <p>Imagen de una atleta</p> 
       <img src="Asignaciones%2520de%2520informatica/ronaldinho.jpg"> 
       <p>Imagen de un atardecer</p>
       <img src="Asignaciones%2520de%2520informatica/atardecer.jpg"> 
   </body>
</html>

【问题讨论】:

标签: html image filepath


【解决方案1】:

确保系统上图像的路径位于 html 可访问的目录中。确保路径正确,图片名称正确。

【讨论】:

  • 是的,就是这样。每当我在括号中按下 Control+S 来保存代码时,它都会将其保存在文件夹之外。谢谢!
  • @javierlora 如果您按对勾按钮接受答案,我将不胜感激。提前致谢!
猜你喜欢
  • 2022-01-26
  • 2021-10-12
  • 1970-01-01
  • 2021-11-19
  • 2015-11-22
  • 2015-03-07
  • 1970-01-01
  • 2017-04-24
  • 2022-01-13
相关资源
最近更新 更多