给你一段HTML代码示例:
<area shape="rect" coords="0,0,134,150" href="page1.html">
cooeds后就是点击的范围坐标第一个点(0,0),第二点坐标(134,150)
[HTML] 纯文本查看 复制代码 <!DOCTYPE html>
<html>
<head>
<title>点击图片跳转</title>
</head>
<body>
<img src="1200-150-4.png" alt="点击图片跳转" usemap="#myMap">
<map name="myMap">
<area shape="rect" coords="0,0,134,150" href="page1.html">
<area shape="rect" coords="134,0,273,150" href="page2.html">
<area shape="rect" coords="273,0,412,150" href="page3.html">
<area shape="rect" coords="412,0,788,150" href="page4.html">
<area shape="rect" coords="788,0,927,150" href="page5.html">
<area shape="rect" coords="927,0,1066,150" href="page6.html">
<area shape="rect" coords="1066,0,1200,150" href="page7.html">
</map>
</body>
</html> |