在 HTML 中設定影像對映區域中的座標?


要設定影像對映中區域的座標,在 HTML 中使用 cords 屬性設定 HTML 影像對映中區域的座標

示例

你可以嘗試執行以下程式碼來實現 cords 屬性 −

<!DOCTYPE html>
<html>
   <head>
      <title>HTML coords attribute</title>
   </head>
   <body>
      <img src = "/images/html.gif" alt = "HTML Map" border = "0" usemap = "#html"/>
      <map name = "html">
         <area shape = "circle" coords = "154,150,59" href = "about/about_team.htm"
            alt = "Team" target = "_self" />
      </map>
   </body>
</html>

更新時間: 2023-11-22

1k+ 次瀏覽

開啟您的職業生涯

完成課程獲得認證

開始學習
廣告
© . All rights reserved.