如何在 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>

更新於: 22-11-2023

1K 以上的瀏覽量

開啟你的職業生涯

完成課程可獲得認證

開始
廣告
© . All rights reserved.