jQuery获取页面高度下拉则出现一个css层
<script type="text/javascript">
//底部浮层显示
var signUpMain=$(window).height();//获得浏览器高度
$(window).scroll(function(){
if($(window).scrollTop()>signUpMain){//如果鼠标划动大于浏览器高度,则fix-signup显示出来, fix-signup事先css设成了disp:none
$(".fix-signup").show();
}else{
$(".fix-signup").hide();
}
})
</script>