jquery 如何取得螢幕寬度

主要就是注意 window 與 document 的差異就可以

來源:
http://stackoverflow.com/questions/3437786/get-the-size-of-the-screen-current-web-page-and-browser-window

 

$(window).height(); //取得瀏覽器視窗高
$(window).width();  ////取得瀏覽器寬

$(document).height(); //取得頁面高
$(document).width(); // 取得頁面寬

 

 

給大家參考囉