html map标签是什么意思
导读:收集整理的这篇文章主要介绍了html map标签是什么意思,觉得挺不错的,现在分享给大家,也给大家做个参考。htML map标签是什么意思?map标签常用在为图像的某区域添加超链接,主要定义一个客户端图像映射,图像映射(image-map)...
收集整理的这篇文章主要介绍了html map标签是什么意思,觉得挺不错的,现在分享给大家,也给大家做个参考。htML map标签是什么意思?map标签常用在为图像的某区域添加超链接,主要定义一个客户端图像映射,图像映射(image-map)指带有可点击区域的一幅图像。
作用:定义一个客户端图像映射。
说明:图像映射(image-map)指带有可点击区域的一幅图像。
注释:area 元素永远嵌套在 map 元素内部。area 元素可定义图像映射中的区域。img> 中的 uSEMap 属性可引用 map> 中的 id 或 name 属性(取决于浏览器),所以我们应同时向 map> 添加 id 和 name 属性。
html map标签 示例
html> body> imgsrc="https://img.js-code.COM/upload/article/000/005/656/5af270fd37755429.jpg"border="0" usemap="#planetmap"alt="Planets" /> map name="planetmap" id="planetmap"> areaShape="circle"coords="180,139,14"href ="http://www.php.cn/example/html/venus.html"target ="_blank"alt="Venus" /> areashaPE="circle"coords="129,161,10"href ="http://www.php.cn/example/html/venus.html"target ="_blank"alt="Mercury" /> areashape="rect"coords="0,0,110,260"href ="http://www.php.cn/example/html/venus.html"target ="_blank"alt="Sun" /> /map> p> b> 注释:/b> img 元素中的 "usemap" 属性引用 map 元素中的 "id" 或 "name" 属性(根据浏览器),所以我们同时向 map 元素添加了 "id" 和 "name" 属性。/p> /body> /html>
以上就是html map标签是什么意思的详细内容,更多请关注其它相关文章!
声明:本文内容由网友自发贡献,本站不承担相应法律责任。对本内容有异议或投诉,请联系2913721942#qq.com核实处理,我们将尽快回复您,谢谢合作!
若转载请注明出处: html map标签是什么意思
本文地址: https://pptw.com/jishu/590478.html