欢迎来到DIVCSS5查找CSS资料与学习DIV CSS布局技术!
  htmlmap标签是什么意思?
 
  map标签常用在为图像的某区域添加超链接,主要定义一个客户端图像映射,图像映射(image-map)指带有可点击区域的一幅图像。
 
  作用:定义一个客户端图像映射。
 
  说明:图像映射(image-map)指带有可点击区域的一幅图像。
 
  注释:area元素永远嵌套在map元素内部。area元素可定义图像映射中的区域。<img>中的usemap属性可引用<map>中的id或name属性(取决于浏览器),所以我们应同时向<map>添加id和name属性。
 
  htmlmap标签示例
 
  
 
  <html>
 
  <body>
 
  <img
 
  src="https://img.php.cn/upload/article/000/005/656/5af270fd37755429.jpg"
 
  border="0"usemap="#planetmap"
 
  alt="Planets"/>
 
  <mapname="planetmap"id="planetmap">
 
  <area
 
  shape="circle"
 
  coords="180,139,14"
 
  href="http://www.php.cn/example/html/venus.html"
 
  target="_blank"
 
  alt="Venus"/>
 
  <area
 
  shape="circle"
 
  coords="129,161,10"
 
  href="http://www.php.cn/example/html/venus.html"
 
  target="_blank"
 
  alt="Mercury"/>
 
  <area
 
  shape="rect"
 
  coords="0,0,110,260"
 
  href="http://www.php.cn/example/html/venus.html"
 
  target="_blank"
 
  alt="Sun"/>
 
  </map>
 
  <p><b>注释:</b>img元素中的"usemap"属性引用map元素中的"id"或"name"属性(根据浏览器),所以我们同时向map元素添加了"id"和"name"属性。</p>
 
  </body>
 
  </html>







本文转载自中文网
 

如需转载,请注明文章出处和来源网址:http://www.divcss5.com/html5/h54229.shtml