offset() ⇒ object
offset(coordinates) ⇒ self v1.0+ offset(function(index, oldOffset){ … }) ⇒ self v1.0+
获得当前元素相对于document的位置。返回一个对象含有: top, left, width和height
当给定一个含有left和top属性对象时,使用这些值来对集合中每一个元素进行相对于document的定位。
offset() ⇒ object
offset(coordinates) ⇒ self v1.0+ offset(function(index, oldOffset){ … }) ⇒ self v1.0+
获得当前元素相对于document的位置。返回一个对象含有: top, left, width和height
当给定一个含有left和top属性对象时,使用这些值来对集合中每一个元素进行相对于document的定位。