在 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.