-1
我做了一段時間後,但不記得它叫什麼。我想定義圖像的三個部分,並將它們鏈接到單獨的網站。這是什麼叫,我該怎麼做?謝謝!!將圖像的區域變爲單獨的鏈接。
我做了一段時間後,但不記得它叫什麼。我想定義圖像的三個部分,並將它們鏈接到單獨的網站。這是什麼叫,我該怎麼做?謝謝!!將圖像的區域變爲單獨的鏈接。
這就是所謂的圖片地圖,雖然它們現在不太常見。
參考:http://www.w3.org/TR/REC-html40/struct/objects.html#h-13.6
你可以用<map>
標籤做到這一點:
<img src="planets.gif" width="145" height="126" alt="Planets" usemap="#planetmap">
<map name="planetmap">
<area shape="rect" coords="0,0,82,126" href="sun.htm" alt="Sun">
<area shape="circle" coords="90,58,3" href="mercur.htm" alt="Mercury">
<area shape="circle" coords="124,58,8" href="venus.htm" alt="Venus">
</map>