單張圖片需對應多個連結區域(如地圖、產品圖、導覽橫幅)時,Dreamweaver 圖片熱點功能讓你以視覺化方式繪製熱區並設定超連結。
map1)。



<img src="banner.jpg" usemap="#map1" alt="導覽橫幅">
<map name="map1">
<area shape="rect" coords="10,10,120,60" href="product.html" alt="產品介紹">
<area shape="circle" coords="200,35,25" href="about.html" alt="關於我們">
<area shape="poly" coords="300,10,350,60,250,60" href="contact.html" alt="聯絡我們">
</map>
<area> 必須加 alt 屬性描述連結目的。SVG <a> 包裹圖形元素、CSS clip-path 疊加透明連結、HTML <map> 搭配響應式圖片 srcset,皆可實現更彈性、可維護的熱區導航。
掌握圖片熱點,讓單一視覺元素承載豐富資訊架構。