img 地图中的最后一个区域标记是做什么用的?

What is the last area tag in an img map for?

所以我正在做一个需要使用 img 地图的项目。我对他们没有什么经验,一直在试图理解为什么他们最后的区域标签通常如下。

    <img class="img_class" id="squares" src="../images/squares.jpg" usemap="#sq_map">
    <map name="sq_map">
      <area shape="rect" href="#" coords="120,40,200,120"  title="blu"  id="1" alt="blu_sq"/>
      <area shape="rect" href="#" coords="120,200,200,280" title="red"  id="2" alt="red_sq"/>
      <area shape="default" nohref="nohref" alt="">
    </map>

我已经为我的可点击区域设置了主地图,但我不确定第三个标签的用途。是在单击图像时阻止默认进程还是沿着这些线? Google 在这个话题上出乎意料地毫无成果,但我会同时继续寻找。感谢您的帮助!

<area shape="default" nohref="nohref" alt="">

shape="default" 表示 select 整个区域。
nohref 表示没有 link 关联。

希望这对您有所帮助。 :)