zoukankan      html  css  js  c++  java
  • html中给图片添加热点

    1. <img src="images/index/top1.jpg" width="248" height="512" usemap="#login">                   
    2. <map name="login">  
    3. <area shape="circle" coords="x1, y1, r"   href="" target="_blank" alt=""    title="" />  
    4. <area   shape="rect"    coords="x1, y1, x2, y2"    href=""    target="_blank" alt=""   title="" />     
    5. <area    shape="poligon"   coords="x1, y1, x2, y2,......."    href=""    target="_blank" alt=""    title="" />     
    6. </map>  

         usemap= # + 与map的name一致

         shape热点形状:circle圆形

         coords坐标位置:圆心x轴,圆心y轴,半径r

         shape热点形状:rect矩形
         coords坐标位置:左上角x轴坐标,左上角y轴坐标,右下角x轴坐标,右下角y轴坐标
         shape热点形状:poligon矩形
         coords坐标位置:第一个点的x轴坐标,第一个点的y轴坐标,第二个点的x轴坐标,第二个点的y轴坐标,.......

  • 相关阅读:
    [NOIP-P1125]逃亡的准备
    [NOIP-P1125]两个数差
    问题 B: [NOIP-P1125]飙车
    [NOIP-P1125]计算概率
    牛跳
    化学方程式
    c++第十七章-(内联函数)
    c++第十六章-(函数模板与类模板)
    《将博客搬至CSDN》
    cocoaPods安装与使用
  • 原文地址:https://www.cnblogs.com/zq20/p/4198468.html
Copyright © 2011-2022 走看看