Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在我的网页上显示图像。我一直在离线工作,但我将 .html 和 .jpg 文件放在同一个目录中。当我去运行它时,它不显示图像。相反,我得到了 alt 值以及一些奇怪的 ASCII 符号。
这是html代码,您可以看到它非常基本:
<head> <title> Mpms Janitorial </title> </head> <body> <img src=”site.jpg” alt=”text” /> </body>
您缺少<html>代码周围的标签。您还为 img 标签使用了一些不寻常的引号。
<html>
尝试这个:
<html> <head> <title> Mpms Janitorial </title> </head> <body> <img src="site.jpg" alt="text" /> </body> </html>