### 用jQuery監聽瀏覽器窗口的變化
//當瀏覽器大小變化時
~~~
$(window).resize(function () {
});
~~~
//瀏覽器時下窗口可視區域高度
` alert($(window).height()); `
//瀏覽器時下窗口文檔的高度
` alert($(document).height()); `
alert($(document.body).height()); //瀏覽器時下窗口文檔body的高度
alert($(document.body).outerHeight(true)); //瀏覽器時下窗口文檔body的總高度 包括border padding margin
$('.div').html($(window).width());
// alert($(window).width()); //瀏覽器時下窗口可視區域寬度
// alert($(window).height()); //瀏覽器時下窗口可視區域高度
// alert($(document).height()); //瀏覽器時下窗口文檔的高度
// alert($(document.body).height());//瀏覽器時下窗口文檔body的高度
// alert($(document.body).outerHeight(true));//瀏覽器時下窗口文檔body的總高度 包括border padding margin
//
// alert($(document).width());//瀏覽器時下窗口文檔對于象寬度
// alert($(document.body).width());//瀏覽器時下窗口文檔body的高度
// alert($(document.body).outerWidth(true));//瀏覽器時下窗口文檔body的總寬度 包括border padding margin