15.html热点测试

热点测试
    <img src="image/1.jpg" border="0" usemap="#planetmap" alt="Planets" border="0" />
    <map name="planetmap" id="planetmap">
      <area shape="circle" coords="180,139,14" href ="a.html" style="cursor: pointer" alt="Venus" />
      <area shape="circle" coords="129,161,10" href ="b.html" alt="Mercury" />
      <area shape="rect" coords="0,0,110,260" href ="c.html" alt="Sun" />
        <!--    属性值                值描述
            x1,y1,x2,y2        如果 shape 属性设置为 "rect",则该值规定矩形左上角和右下角的座标。
            x,y,radius        如果 shape 属性设置为 "circ",则该值规定圆心的座标和半径。
            x1,y1,x2,y2,..,xn,yn        如果 shape 属性设置为 "poly",则该值规定多边形各边的座标。如果第一个座标和最后一个座标不一致,那么为了关闭多边形,浏览器必须添加最后一对座标。-->

    </map>

发布了35 篇原创文章 · 获赞 4 · 访问量 1万+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章