HTML Dog
跳至导航

HTML 标签:map

图像映射的基础。与 imgarea 配合使用,将链接映射到图像的特定区域。

必需属性

属性 描述 可能的值
name 用于引用图像映射的唯一名称。 文本(无空格)。

可选属性

全局属性

示例


<map name="atlas">
    <area shape="rect" coords="0,0,115,90" href ="northamerica.html" alt="North America">
    <area shape="poly" coords="113,39,187,21,180,72,141,77,117,86" href="europe.html" alt="Europe">
    <area shape="poly" coords="119,80,162,82,175,102,183,102,175,148,122,146" href="africa.html" alt="Africa">
</map>