我的HTML页面正确引用图像,但不会显示?

时间:2014-08-23 19:53:13

标签: html image ftp

我上传了一个" test.html"页面到我的网站,在根文件夹中,以及" filmandmusic.jpg"图像(也在根文件夹中)。即使我转到图像本身的URL,图像也会显示为损坏的jpg。

我做错了什么?

http://www.bobbymcglynn.com/test.html

注意:这仅在上传网站后发生,我使用Dreamweaver设计我的网站,当我在本地编辑页面时,一切看起来都很好。我使用FileZilla上传。

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
</head>

<body>
<p>This is a test page. The "film and music" image should display itself below.</p>
<img src="filmandmusic.jpg" height="75" width="525"/>
</body>
</html>

3 个答案:

答案 0 :(得分:1)

你的HTML没有任何错误。
如果你去你的website root folder 然后打开你的图像,你会看到这个图像有这个形式,所以上传的图像可能是错误的

答案 1 :(得分:0)

显示图像包含错误。尝试上传新图片。 错误可能是由于连接错误或图像可能最初损坏造成的。

答案 2 :(得分:0)

你很难将图像联系起来。尝试填写正确的src路径。也许它不是jpg而是png。你永远不会。