首页 > 解决方案 > 如何在单击按钮上的图像地图位置添加值

问题描述

我有一个包含一些单元格的表格的图像。我将其制作为图像映射,我想做的是当用户单击按钮时,我可以在表格的单元格中设置值。图像映射可以吗?在我的代码下面的图像映射代码中,每个单元格的坐标。我现在需要知道如何在用户单击按钮时在用矩形坐标指定的这些位置设置值 我的形象与桌子

<!-- Image Map Generated by http://www.image-map.net/ -->
<img src="pic.png" usemap="#image-map">

<map name="image-map">
    <area target="" alt="" title="" href="" coords="332,152,459,198" shape="rect">
    <area target="" alt="" title="" href="" coords="329,262,450,295" shape="rect">
    <area target="" alt="" title="" href="" coords="331,319,449,350" shape="rect">
    <area target="" alt="" title="" href="" coords="334,376,454,396" shape="rect">
    <area target="" alt="" title="" href="" coords="652,147,771,194" shape="rect">
    <area target="" alt="" title="" href="" coords="651,265,780,291" shape="rect">
    <area target="" alt="" title="" href="" coords="652,325,778,351" shape="rect">
    <area target="" alt="" title="" href="" coords="659,374,779,395" shape="rect">
</map>

标签: htmlcssimagemap

解决方案


推荐阅读