实例代码“Ctrl+/”提示“F11/ESC”全屏 返回 格式化 恢复 运行
x
 
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<base href="/upload/images/201509/cfcc6c13c28.gif" target="_blank">
5
</head>
6
<body>
7
8
<p><img src="/upload/images/201509/cfcc6c13c28.gif" width="24" height="39" alt="Stickman"> - 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 "/images/stickman.gif".</p>
9
10
<p><a href="">shouce.ren</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".</p>
11
12
</body>
13
</html>
14