分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > 网页技术

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

发布时间:2023-09-06 01:33责任编辑:彭小芳关键词:暂无标签

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

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

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved