HTML 5中的area>标记用于在图像映射中定义一个区域。
图像映射是带可点击区域的图像,用于打开其他链接或者网页。
<area>标记始终在HTML 5中的<map>标记中使用。
<area>标记也支持全局属性和事件属性。
html 5中的<area>标记示例
Web.html网页
<html> <head> <title> 太阳系 </title> </head> <body> <h1> <img src="1.jpg" width="145" height="126" alt="Planets" usemap="#thanks" </h1> <map name="thanks"> <area shape="rect" coords="0,0,82,126" href="sun.html" <area shape="circle" coords="90,58,3" href="moon.html" <area shape="circle" coords="124,58,8" href="sun.html" </map> </body> </html>
Sun.html网页
<html> <body> <img src="2.jpg" width="400" height="400" border="0" alt="太阳"> </body> </html>
日期:2020-04-11 23:04:14 来源:oir作者:oir