
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<img src="a.jpg" alt = "Al Sheik" width="300px" height="300px" />
</body>
</html>
上面的程式碼無法顯示我引用的圖像。我想知道我做錯了什麼?下面是資料夾和檔案的權限。
-rwxrwxrwx 1 pipi pipi 100726 Oct 12 16:14 a.JPG
-rw-rw-rw- 1 pipi pipi 2475 Oct 12 18:41 class.php
drwxrwxr-x 2 pipi pipi 4096 Oct 13 15:14 image
-rw-rw-r-- 1 pipi pipi 11321 Sep 28 18:38 index.html
-rw-rw-r-- 1 pipi pipi 431 Oct 13 15:40 index.php
-rw-rw-rw- 1 pipi pipi 157 Oct 12 10:50 me.php
-rw-rw-rw- 1 pipi pipi 447 Oct 12 15:00 my.html
-rw-rw-rw- 1 pipi pipi 2475 Oct 12 18:55 new.html
-rw-rw-rw- 1 pipi pipi 316 Oct 8 10:41 test.php
答案1
它區分大小寫。
如果您的圖片被調用,a.JPG
您需要在 HTML 中準確寫入該圖片
<img src="a.JPG" alt = "Al Sheik" width="300px" height="300px" />