我有一个这样的区域值
<Area shape="polygon" alt="图片" coords=263,20,390,20,390,128,263,128 href="#">
怎么转换成下面这种类型区域。
<area shape="rect" coords="x1, y1,x2,y2" href=url>
我是想通过把shape="polygon"多边区域的坐标转换正文形的坐标。就是多个值变成4位。 求大侠给我一点指示。
但最终目的我是想通过<Area shape="polygon" alt="图片" coords=263,20,390,20,390,128,263,128 href="#"> 这种方式来实现下面效果: