js网页尺寸随窗口尺寸变化

window.onresize = window.onload= function(){
        var body_height = $(window).height();
        $('.left').height(body_height-50);
        $('.xian').height(body_height-50);
    }

 

posted @ 2015-06-24 18:36  yi-  阅读(949)  评论(0编辑  收藏  举报