照着书写了一段:
<!DOCTYPE html>
<html>
<head>
<title>More Spectacular Yosemite</title>
</head>
<body>
<p style="text-align: center;">Click on a logo to go to the different page.<br>
<img src="images/map.jpg" usemap="#colorfulmap" style="border: none;width: 600px;height: 600px" alt="Color Map"></p>
<map name="colorfulmap" id="colorfulmap">
<area shape="rect" coords="0,0,10.58,10.58" href="images/red.jpg" title="red">
<area shape="rect" coords="10.58,0,21.16,10.58" href="images/yellow.jpg" title="yellow">
<area shape="rect" coords="0,10.58,10.58,21.16" href="images/blue.jpg" title="blue">
<area shape="rect" coords="10.58,10.58,21.16,21.16" href="images/pink.jpg" title="pink">
</map>
</body>
</html>
检查了半天也没看出哪里有问题
但是在浏览器中打开那个图像没有任何超链接。。。更别说映射不同的链接了。
求大神指点
HTML关于图像映射的问题
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
2条回答 默认 最新
- roc_tootwo 2017-01-22 12:54关注
你图片是600*600的大小,你的点击只有10*10太小了,你把大小调成200*200就明显很多了
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
悬赏问题
- ¥15 arduino控制ps2手柄一直报错
- ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
- ¥85 maple软件,solve求反函数,出现rootof怎么办?
- ¥15 求chat4.0解答一道线性规划题,用lingo编程运行,第一问要求写出数学模型和lingo语言编程模型,第二问第三问解答就行,我的ddl要到了谁来求了
- ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
- ¥50 树莓派安卓APK系统签名
- ¥65 汇编语言除法溢出问题
- ¥15 Visual Studio问题
- ¥20 求一个html代码,有偿
- ¥100 关于使用MATLAB中copularnd函数的问题