window.onresize=function(){if(window.screen.height==document.body.clientHeight){$(".xxx").css("display","block");}else{$(".xxx").css("display","none"); }}
判断高度是否变化,然后控制定位元素显示隐藏