jquery距离底部100象素时层消失
$(window).scroll(function() {
var x = $(document).scrollTop() + $(window).height() - $("#scrolltip").height();
if (x + 100 > $(document).height()) {
$("#scrolltip").hide();
} else {
$("#scrolltip").show();
}
});
苗景云的博客
<< 向左走,向右走 >>
<< 向左走,向右走 >>