要添加图像映射,请使用 html 中的 标记。 html 标签与 标签一起定义图像映射。
以下是属性 -
属性
值
说明
tr>
名称
unique_name
定义地图标记的唯一名称
示例您可以尝试运行以下代码来了解如何在 html 中创建图像映射 -<!doctype html><html> <head> <title>html map tag</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中创建一个图像映射?的详细内容。