在 HTML 中設定區域的形狀


使用 shape 屬性來設定 HTML 中的區域形狀。你可以嘗試執行以下程式碼來實現 shape 屬性 -

示例

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

更新於:2020 年 3 月 3 日

118 次瀏覽

開啟你的 職業生涯

獲取認證,透過完成課程

開始
廣告
© . All rights reserved.