您的位置:首页 > 其它

创建带有可供点击区域的图像地图。其中的每个区域都是一个超级链接

2013-12-10 21:36 501 查看
<html>

<body>

<p>请点击图像上的星球,把它们放大。</p>

<img src= "http://www.baidu.com/img/bdlogo.gif" width="300" height="300" border="0" usemap="#planetmap" alt="Planets" />

<map name="planetmap" id="planetmap">

<area shape="circle" coords="180,139,14" href ="http://www.baidu.com" target ="_blank" alt="baidu" />

<area shape="circle" coords="129,161,10" href ="http://www.goole.com" target ="_blank" alt="goole" />

<area shape="rect" coords="0,0,110,260" href ="http://www.163.com" target ="_blank" alt="163" />

</map>

<p><b>注释:</b>img 元素中的 "usemap" 属性引用 map 元素中的 "id" 或 "name" 属性(根据浏览器), 所以我们同时向 map 元素添加了 "id" 和 "name" 属性。</p>

</body>

</html>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐