请点击图像上的星球,把它们放大。
src="/i/eg_planets.jpg"
border="0" usemap="#planetmap"
alt="Planets" />
id="planetmap">
shape="circle"
coords="180,139,14"
href ="/example/html/venus.html"
target ="_blank"
alt="Venus" />
shape="circle"
coords="129,161,10"
href ="/example/html/mercur.html"
target ="_blank"
alt="Mercury" />
shape="rect"
coords="0,0,110,260"
href ="/example/html/sun.html"
target ="_blank"
alt="Sun" />
注释:img
元素中的 "usemap" 属性引用 map 元素中的 "id" 或 "name" 属性(根据浏览器),所以我们同时向 map
元素添加了 "id" 和 "name" 属性。
本文介绍了一种使用HTML图像映射技术实现的交互式星球展示方案。通过点击不同位置的星球图像,用户可以链接到关于该星球的具体信息页面,提供了一种直观且有趣的用户体验方式。
1816

被折叠的 条评论
为什么被折叠?



