网络上的火柴人在哪里?

时间:2014-01-07 11:51:18

标签: html

<!DOCTYPE html>
<html>
<head>
<base href="http://www.w3schools.com/images/" target="_blank">
</head>

<body>
<img src="stickman.gif" width="24" height="39"> - Notice that we have only specified a relative address for the image. Since we have specified a base URL in the head section, the browser will look for the image at "http://www.w3schools.com/images/stickman.gif"
<br><br>
<a href="http://www.w3schools.com">W3Schools</a> - Notice that the link opens in a new window, even if it has no target="_blank" attribute. This is because the target attribute of the base element is set to "_blank".

</body>
</html>

当我用firefox打开它时,可以在网络上看到一个火柴人,但我找不到它 http://www.w3schools.com/images/stickman.gif/ ,gif在哪里?

2 个答案:

答案 0 :(得分:2)

删除上一个斜杠/

试试这个网址:

  

http://www.w3schools.com/images/stickman.gif

答案 1 :(得分:1)

火柴人在这里:http://www.w3schools.com/images/stickman.gif

您的网址末尾有一个流氓/