javascript关于位置的相关参数解释
    
  clientX :相对于网页的x坐标 
  
  
    
  clientY :相对于网页的y坐标 
  
  
    
  offsetX :相对于父容器的x坐标 
  
  
    
  offsetY :相对于父容器的y坐标 
  
  
    
  offsetLeft :获取对象相对于版面或由 offsetParent 属性指定的父坐标的计算左侧位置 
  
  
    
  offsetTop :获取对象相对于版面或由 offsetParent 属性指定的父坐标的计算顶端位置 
  
  
    
  screenX :相对于显示器的x坐标 
  
  
    
  screenY :相对于显示器的y坐标 
  
  
    
  scrollWidth :对象的滚动宽度 
  
  
    
  scrollHeight :对象的滚动高度 
  
  
    
  scrollLeft :对象左边界和窗口中目前可见内容的最左端之间的距离 
  
  
    
  scrollTop :对象最顶端和窗口中可见内容的最顶端之间的距离 
  
  
    
  以上主要指IE之中,FireFox差异如下: 
  
  
    
  IE6.0、FF1.06+: 
  
  
    
  clientWidth = width + padding 
  
  
    
  clientHeight = height + padding 
  
  
    
  offsetWidth = width + padding + border 
  
  
    
  offsetHeight = height + padding + border 
  
  
    
  IE5.0/5.5: 
  
  
    
  clientWidth = width - border 
  
  
    
  clientHeight = height - border 
  
  
    
  offsetWidth = width 
  
  
    
  offsetHeight = height 
  
  


 
					 
					