2016-11-27 55 views

回答

1

而是通过显示隐藏#more-locations-div div:none,try height:0;溢出:隐藏

jQuery("#more-locations-div").css("height", "0").css("overflow", "hidden"); 
jQuery("#loadmorebtn").on("click" ,function(){jQuery("#loadmorebtn").remove();jQuery("#more-locations-div").css("height", "auto");});