图像映射map

<map>标签:带有可点击区域的图像映射

定义一个客户端图像映射。图像映射(image-map)指带有可点击区域的一幅图像。 

效果图:

点击相应蓝色标签可进入详情页面浏览。

代码:

<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>图像映射-Map</title>
</head>
<body>
    <h1>图像映射示例</h1>
    <img src="home.jpg" alt="" width="584px" height="399px" usemap="#homeMap"/>
    <map name="homeMap" id="homeMap">
        <area shape="circle" coords="160,270,20" href="coach.jpg" alt="沙发" target="_blank"/>
        <area shape="circle" coords="250,130,20" href="Painting.jpg" alt="挂画" />
        <area shape="circle" coords="160,370,20" href="carpet.jpg" alt="地毯" />
        <area shape="circle" coords="510,50,20" href="clapboard.jpg" alt="地毯" />
    </map>
</body>
</html>

 讲解:

转载于:https://www.cnblogs.com/Joanna-Yan/p/4771294.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值