首頁  >  文章  >  web前端  >  設定HTML中區域的形狀

設定HTML中區域的形狀

PHPz
PHPz轉載
2023-09-03 18:25:111067瀏覽

設定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>

以上是設定HTML中區域的形狀的詳細內容。更多資訊請關注PHP中文網其他相關文章!

陳述:
本文轉載於:tutorialspoint.com。如有侵權,請聯絡admin@php.cn刪除