html网页插入图片、加入地图索引示例讲解

2019-01-15 11:22:06王冬梅

三、HTML地图索引:

地图索引,也就是用一样图片中的某一部分做超链接,可以做很多个超链接(使用设计视图就可以搞定)


复制代码

<!--
格式:<mapname="图象名称"id="图象名称">
<areashape="选取区块的形状"coords="坐标"href="URL"alt="文字说明">
</map>
<imgsrc="URL"USEMAP="#图象名称">
<map>声明整张图使用地图链接方式进行连接.
name,id指此图的名称.
<area>表示我们所要链接其中一点的区快
shape表示我们所选择的形状,如:rect矩形circle圆poly多边形
coords表示地图的坐标位置!!
-->
<imgsrc="../../../素材库/42a98226cffc1e173ec6f5894b90f603738de909.jpg"alt="MM"width="200"height="300"hspace="20"border="0"align="left"usemap="#Map"title="MM"/>
<mapname="Map"id="Map">
<areashape="rect"coords="39,99,76,137"href="#"alt="打你哦"/>
<areashape="circle"coords="94,200,17"href="#"alt="好大"/>
<areashape="poly"coords="87,50,119,50,121,70,91,67"href="#"alt="myeyes"/>
</map>

为网页添加图标:<linkrel="shortcuticon"href="文件路劲名称.ico"type="image/x-icon">放在<head>头部标签内