zoukankan      html  css  js  c++  java
  • HTML <map> 标签

    定义和用法

    定义一个客户端图像映射。图像映射(image-map)指带有可点击区域的一幅图像。

    实例

    带有可点击区域的图像映射:

    <img src="planets.jpg" border="0" usemap="#planetmap" alt="Planets" />
    
    <map name="planetmap" id="planetmap">
      <area shape="circle" coords="180,139,14" href ="venus.html" alt="Venus" />
      <area shape="circle" coords="129,161,10" href ="mercur.html" alt="Mercury" />
      <area shape="rect" coords="0,0,110,260" href ="sun.html" alt="Sun" />
    </map>
    

    定义和用法

    usemap 属性将图像定义为客户端图像映射。

    图像映射指的是带有可点击区域的图像。

    usemap 属性与 <map> 元素的 name 或 id 属性相关联,以建立 <img> 与 <map> 之间的关系。

    延伸阅读:详解 usemap 属性

    HTML 4.01 与 HTML5 之间的差异

    没有。

    实例

    客户器端图像映射:

    <img src="planets.gif" alt="Planets" usemap="#planetmap" />
    
    <map name="planetmap">
      <area href="sun.htm" shape="rect" coords="0,0,110,260">Sun</a>
      <area href="mercur.htm" shape="circle" coords="129,161,10">Mercury</a>
      <area href="venus.htm" shape="circle" coords="180,139,14">Venus</a>
    </map>
    
  • 相关阅读:
    改善深层神经网络
    IO操作 第一篇 学习(转载)
    杂谈:收集的一些博文
    杭电2072
    Java数组常用方法
    JAVA中final修饰符小结
    南阳106
    南阳283
    南阳277
    南阳458
  • 原文地址:https://www.cnblogs.com/qiuh/p/3108365.html
Copyright © 2011-2022 走看看