0

The image does not show up. I have used Mac's "Get Info" to see the path.

How do I specify the path in the <img> tag? This is what I have tried:

<img class="logo" alt="Help Me" 
     src="../../CGT136as/week-07hw/website/images/standout.jpeg"/>
<img class="logo" alt="Help Me" 
     src="users/janedoe/CGT136as/week-07hw/website/images/standout.jpeg" />
<img class="logo" alt="Help Me"
     src="~/CGT136as/week-07hw/website/images/standout.jpeg"  />
<img class="logo" alt="Help Me"
     src="file:///users/janedoe/CGT136as/week-07hw/website/images/standout.jpeg" />

I'm Using MacBook Pro (bought in March 2013), Safari is version 6.0.5, OS X 10.8.5.

4

2 回答 2

0

如果您在 index.html 所在的文件夹中创建一个名为 img 的文件夹,并将所有图片放入 img 文件夹中,您只需键入 /img/"imgname"

于 2013-10-16T21:30:05.320 回答
0

你有没有尝试过

<img class="logo" src="file://localhost/users/janedoe/CGT136as/week-07hw/website/images/standout.jpeg" alt="Help Me" />

还要检查区分大小写的字母

于 2013-10-16T21:30:19.450 回答