应用场景html
使用方法this
利用usemap属性,构建一个map标签spa
<!DOCTYPE html>
<!--先设置一个usemap属性,而后下面的map利用这个名字加以链接-->
<img src="xxx.png" usemap="#map"
<map name="map">
<!--设置一个圆形的坐标相对于图片为(20,20),半径为20的圆形区域 ,onFocus="this.blur()" 去掉虚线框-->
<area shape="circle" coords="20,20,20" title="1111111" href="xxxx" onFocus="this.blur()">
<!--设置一个左上角坐标为(100,100),右下角坐标为(200,200)用来定位矩形的位置-->
<area shape="rect" coords="100,100,200,200" title="222222222" href="xxxx">
<!--设置一个不规则区域-->
<area shape="poly" coords="0,0,200,0,200,200,100,300,0,200" href="xxxx" title="3333333333">
</map>
复制代码
shape属性code
coords属性cdn