$items.each(function () {
var $m = $(this);
var $itemTop = $m.offset().top;
offset() 方法返回或设置匹配元素相对于文档的偏移(位置)。