2013-10-26 100 views
0

你好,我已經正確地創建了一個圖像映射之前,但這個時候,我不能告訴我做錯了,我明白,我沒有的URL放入但不應該的問題,當我將鼠標懸停在我想要的地圖的一部分,我沒有看到鼠標切換到可點擊的樣子,感謝先進!HTML圖像映射代碼

<img src="cities.png" width="900" height="950" border="2" usemap="#places"> 
<map name="places"> 
<area shape="circle" coords="1445,690,23" href=""> 
<area shape="poly" coords="1118,887,1144,874,1175,893,1164,857,1189,840,1157,835,1146,802,1135,836,1102,837,1126,858,1126,861,1126,862" href=""> 
<area shape="circle" coords="1098,906,24" href=""> 
<area shape="circle" coords="408,1101,24" href=""> 
<area shape="circle" coords="356,987,24" href=""> 
</map> 
+2

你的區域標籤上缺少相同的標籤面積和形狀,以及COORDS參數之間的空間有一個冒號,其中其收盤報價應該的。 – colbydauph

+0

我認爲這是因爲'href'是空的。 –

+0

雅,你右鍵 - > colbydauph –

回答

0

看來您提供的形狀的座標超出了圖像本身的範圍。

這些區域標籤的「COORDS」屬性中的值。

如果這仍然沒有解決您的問題,您可能需要使用CSS光標更改爲指針。

area { 
    cursor: pointer; 
}