//朋友的横坐标和纵坐标 var x = $(this).offset().left+'px'; var y = $(this).offset().top + $(this).height+'px'; dvObj.css('left', x); dvObj.css('top', y);