欢迎来到DIVCSS5查找CSS资料与学习DIV CSS布局技术!
  htmlarea标签怎么用?
 
  作用:带有可点击区域的图像映射
 
  说明:
 
  <img>中的usemap属性可引用<map>中的id或name属性(由浏览器决定),所以我们需要同时向<map>添加id和name两个属性。
 
  注释:
 
  <area>标签定义图像映射中的区域(注:图像映射指得是带有可点击区域的图像)。area元素总是嵌套在<map>标签中。<img>标签中的usemap属性与map元素name属性相关联,创建图像与映射之间的联系。
 
  htmlarea标签示例
 
  
 
  <!DOCTYPEhtml>
 
  <html>
 
  <head>
 
  <metacharset="UTF-8">
 
  <title>Title</title>
 
  </head>
 
  <body>
 
  <imgsrc="http://www.php.cn/tpl/Index/Static/img/banner7.jpg"border="0"usemap="#studymap"alt="study"/>
 
  <mapname="studymap"id="studymap">
 
  <areashape="circle"coords="180,139,14"href="http://www.php.cn"/>
 
  <areashape="circle"coords="129,161,10"href="http://www.php.cn"/>
 
  <areashape="rect"coords="0,0,110,260"href="http://www.php.cn"/>
 
  </map>
 
  </body>
 
  </html>





本文转载自中文网
 

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