Html 如何在地图区域坐标上书写文字

Html 如何在地图区域坐标上书写文字,html,area,Html,Area,有没有办法在html中的图像坐标上写入文本? 您可以使用一点CSS来实现这一点,以下是一个示例: HTML: <div class="img"> <img src="" alt="" /> <h4>Text you want to display on the image</h4> </div> .img { position: relative;//make the pozition of im

有没有办法在html中的图像坐标上写入文本?
您可以使用一点CSS来实现这一点,以下是一个示例:

HTML:

<div class="img">

      <img src="" alt="" />

      <h4>Text you want to display on the image</h4>

</div>
.img { 
   position: relative;//make the pozition of image relative 

}

h4 { 
   position: absolute; //and give absolute position to your text
   top: 200px; //this top and left values can be taken as coordinates of image 
   left: 0; 

}