2019独角兽企业重金招聘Python工程师标准>>>
简单小例子
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>图片热区</title>
<style type="text/css">
.img-area{
width:300px;
height:200px;
margin: 0 auto;
background: #ccc;
}
img{
width:100%;
height:100%;
}
</style>
</head>
<body>
<div class="img-area">
<img src="../img/head.png" alt="图片热区" usemap="#areaImg"/>
<map name="areaImg">
<area shape="rect" coords="56,69,78,139" href="http://www.baidu.com" target="_blank" alt="打开新页面"/>
</map>
</div>
<script type="text/javascript" src="../vendor/jquery-1.11.3.min.js" ></script>
</body>
</html>