map关于图片的映射

今天研究了会img的usemap属性

举个例子;

<img src = "" usemap = "#name">

<map name = "name">

  <area shape = "rect" coords = "" href = "" alt = "">

</map>

简单介绍一下:

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

shape指的是定义区域的形状;

coords指的是可点击区域的坐标;

href指的是点击后进入的目标路径;

个人认为的优点:

在图片上进行操作

可以跳转页面

猜你喜欢

转载自www.cnblogs.com/huichaoboke/p/11107891.html