-1

私は本当にすべてを試しましたが、うまくいきません。

コードは

<html>
<head>
  <title>Map test</title>
</head>
<body>
  <img usemap="#map1" src="/assets/templates/design01/header2.jpg" alt="SaveMe Header" />
  <map name="map1">
    <a href="/sitemap" shape="rect" coords="600,115,670,135" title="Sitemap"></a>
    <a href="/contact" shape="rect" coords="680,115,750,135" title="Contact"></a>
  </map>
</body>
4

1 に答える 1

2

aタグをに変更するとarea、機能します。

<map name="map1">
  <area href="/sitemap" shape="rect" coords="600,115,670,135" title="Sitemap"></area>
  <area href="/contact" shape="rect" coords="680,115,750,135" title="Contact"></area>
</map>
于 2013-03-08T09:42:12.250 に答える