Jquery:hide一个元素,需要注意的问题(offset)

  $(".load_more").css('display','none'); 

  或 $(that.more).find("strong").hide();

   需要注意的问题(offset)   $(that.more).offset().top 值有可能为0 

 其offset()都会变为0,但是实际上通过attr('left')和attr('top')得到的值,才是正确的left和top

原文地址:https://www.cnblogs.com/Fooo/p/5084334.html