我正在报告最后一个解决方案的一些代码
HTML
<div id=container>
<div id="gallery">
<img src="http://neos.anekitalia.com/wp-content/uploads/media/mappa-
lefkada.png" alt="Lefkada" width="320" height="500" border="0"
usemap="#Map">
</div>
<div id="location-html"><span>Genion</span></div>
</div>
CSS
#location-html {
position: absolute;
top: 260px;
left: 250px;
color: #000;
cursor: pointer;
z-index: 9999;
font-size: 12px;
font-weight: 700;
font-family: "Open Sans",sans-serif;
}
#location-html span:before {
height:10px;
width:10px;
display:inline-block;
background-color:#b01817;
border-radius: 50%;
display: inline-block;
margin-right: 4px;
content: "";
}
https://jsfiddle.net/w35ua82v/
这是地图标记不起作用的解决方案
HTML
<div id="gallery">
<img src="http://neos.anekitalia.com/wp-content/uploads/media/mappa-
lefkada.png" alt="Lefkada" width="320" height="500" border="0"
usemap="#Map">
<map name="Map" id="Map">
<area shape="rect" coords="330,219,406,234" href="#" alt="Genion">
<div id="location-html"><span>Genion</span>
</area>
</map>
</div>
</div>
CSS
#location-html {
position: absolute;
top: 260px;
left: 250px;
color: #000;
cursor: pointer;
z-index: 9999;
font-size: 12px;
font-weight: 700;
font-family: "Open Sans",sans-serif;
}
#location-html span:before {
height:10px;
width:10px;
display:inline-block;
background-color:#b01817;
border-radius: 50%;
display: inline-block;
margin-right: 4px;
content: "";
}