offsetTop:相对于版面或由 offset parent  属性指定的父坐标的计算顶端位置什么叫计算顶端位置呢?

解决方案 »

  1.   

    英文原文是the calculated top position of the object relative to the layout or coordinate parent, as specified by the offsetParent property.照白翻译计算顶端位置, 实际上是说是计算后的top值
    那么怎么计算呢,后面就解释说相对于布局上的父元素(也就是offsetParent所制定的元素)的位置