获取页面高度

$(window).height()

 

判断分辨率的 

window.screen.width