<map>常用在为图像的某区域添加超链接!
用法如下:
<img src ="planetsgif" alt="无法显示此图像" usemap ="#planetmap" />
<map id ="planetmap" name="planetmap">
<area shape ="rect" coords ="0,0,82,126" href ="sunhtm" alt="Sun" />
<area shape ="circle" coords ="90,58,3" href ="mercurhtm" alt="Mercury" />
<area shape ="circle" coords ="124,58,8" href ="venushtm" alt="Venus" />
</map>
usemap属性获取<map>标签信息,<area> 标签定义一个链接区域,shape属性定义区域形状,coords属性定义链接区域的起点坐标和终点坐标,又不懂的可以hi我!
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)