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