88417615 2014-01-07
代码如下:
<script type="text/javascript"> //根据浏览器大小调整左右布局的大小 $(window).ready(function(){ var wheight=$(window).height(); var wwidth=$(window).width(); $(".div_admin_left").css("height",(wheight-40)); $(".div_admin_right").css("height",(wheight-40)); $(".div_admin_right").css("width",(wwidth-285)+'px'); }); $(window).resize(function(){ var wheight=$(window).height(); var wwidth=$(window).width(); $(".div_admin_left").css("height",(wheight-40)); $(".div_admin_right").css("height",(wheight-40)); $(".div_admin_right").css("width",(wwidth-285)+'px'); }); </script>