$(window).width(); //瀏覽器可視窗口寬度 $(window).height(); //瀏覽器可視窗口高度 $(document).width();//body的寬度 $(document.body).width();//body的寬度 $(document).height(); //body的高度 $(document.body).height();//body的高度 $(document).scrollTop(); //滾動條卷走的高度 $(document).scrollLeft(); //滾動條卷走的寬度 screen.height;//屏幕分辨率的高 screen.width;//屏幕分辨率的寬 screen.availHeight;//屏幕可用工作區高度