在HTML中设置图像映射区域的坐标?

WBOY
WBOY 转载
2023-09-09 16:05:19 238浏览

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

以上就是在HTML中设置图像映射区域的坐标?的详细内容,更多请关注php中文网其它相关文章!

声明:本文转载于:tutorialspoint,如有侵犯,请联系admin@php.cn删除