\');'] }); $(window).on('resize',function(){ console.log($(window).height()); var h=parseInt($(window).height()) - 73; $('.layui-layer').css({width:$(window).width() + 'px',height:h + 'px'}); $('.layui-layer iframe').css({height:h + 'px'}) }); })