[JavaScript] jQuery监听窗口是否改变尺寸resize →→→→→进入此内容的聊天室

来自 , 2020-07-06, 写在 JavaScript, 查看 139 次.
URL http://www.code666.cn/view/926ffc0c
  1. <script type="text/javascript" charset="utf-8" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
  2. <script type="text/javascript" charset="utf-8">
  3. $(document).ready(function(){
  4.  
  5. //If the User resizes the window, adjust the #container height
  6. $(window).bind("resize", resizeWindow);
  7. function resizeWindow( e ) {
  8.         var newWindowHeight = $(window).height();
  9.         $("#container").css("min-height", newWindowHeight );
  10. }
  11.  
  12. });                    
  13. </script>
  14. //javascript/3934

回复 "jQuery监听窗口是否改变尺寸resize"

这儿你可以回复上面这条便签

captcha