JavaScript JQuery:检测浏览器调整大小

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了JavaScript JQuery:检测浏览器调整大小相关的知识,希望对你有一定的参考价值。

<script type="text/javascript" charset="utf-8" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){

//If the User resizes the window, adjust the #container height
$(window).bind("resize", resizeWindow);
function resizeWindow( e ) {
	var newWindowHeight = $(window).height();
	$("#container").css("min-height", newWindowHeight );
}

});			
</script>

以上是关于JavaScript JQuery:检测浏览器调整大小的主要内容,如果未能解决你的问题,请参考以下文章