我能找到窗口的大小,當我調整我window.like這獲取文檔的大小時窗口調整
<script type="text/javascript">
jQuery(window).resize(function() {
var width = jQuery(window).width();
var height = jQuery(window).height();
console.log(width);
console.log(height);
})
</script>
現在我想,當我調整窗口的大小,以獲取文檔的大小。如何在每次調整窗口大小時獲取大小。
這是一個重複的問題(http://stackoverflow.com/questions/3044573/using-jquery-to-get [呢?] -size-of-viewport) – 2013-03-07 11:25:23