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>
    
  • 相关阅读:
    Qt编写安防视频监控系统1-通道切换
    Qt编写数据可视化大屏界面电子看板12-数据库采集
    Serv-U
    CLAAS KGaA mbH
    法国雷诺
    Bulma
    react技术栈
    小程序开发
    上海hande
    30个极大提高开发效率的VSCode插件
  • 原文地址:https://www.cnblogs.com/qiuh/p/3108365.html
Copyright © 2011-2022 走看看