码迷,mamicode.com
首页 > Web开发 > 详细

html map属性 coords实现定位,图片里生成button

时间:2017-12-29 21:48:44      阅读:323      评论:0      收藏:0      [点我收藏+]

标签:value   number   prim   pos   val   link   lan   travel   ken   

 

The Map element is used to define an image map a clikable link in it.

 

 

 

 

 

<div class="travel_tip_view">
<img src="../../img/lancome/Part 1_Travel Tips_Lancome TR CDFG_20171229.jpg" alt="tip">
<img src="../../img/lancome/Part 2_Travel Tips_Lancome TR CDFG_20171229.jpg" alt="tip">
<img src="../../img/lancome/Part 3_Travel Tips_Lancome TR CDFG_20171229.jpg" alt="tip" usemap="#Map">
<img src="../../img/lancome/Part 4_Travel Tips_Lancome TR CDFG_20171229.jpg" alt="tip" usemap="#Map2">
<map name="Map" id="Map">
<area href="#" shape="rect" coords="492,397,644,437" alt="立即购买" onfocus="blur()">
<area href="#" shape="rect" coords="0,816,151,857" alt="立即购买" onfocus="blur()">
<area href="#" shape="rect" coords="491,1287,645,1328" alt="立即购买" onfocus="blur()">
</map>
<map name="Map2" id="Map2">
<area href="#" shape="rect" coords="183,790,335,830" alt="了解详情" onfocus="blur()">
<area href="#" shape="rect" coords="597,793,750,832" alt="了解详情" onfocus="blur()">
</map>
</div>

 

-----------------------------------------------------------------------------------------------------------------

<map name="primary">
  <area shape="circle" coords="75,75,75" href="left.html">
  <area shape="circle" coords="275,75,75" href="right.html">
</map>
<img usemap="#primary" src="https://placehold.it/350x150" alt="350 x 150 pic">



 

html map属性 coords实现定位,图片里生成button

标签:value   number   prim   pos   val   link   lan   travel   ken   

原文地址:https://www.cnblogs.com/ybleeho/p/8146271.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!