本人新手写点代码有点村,希望大家多多包含!!!!!! 复制代码 代码如下: js弹窗效果 <BR>//document.body.offsetWidth="512px"; <BR>function mina(){ <BR>$("#dv").css("display","block"); <BR>var a = $(document).height(); <BR>var b = $(window).width(); <BR>var h =$(window).height(); <BR>f = (b-300)/2; <BR>d =(h-300)/2; <BR>$("#dv").css("margin-top",d); <BR>$("#dv").css("margin-left",f); <BR>$("#zhezhao").toggle(); <BR>$("#zhezhao").css("width",b); <BR>$("#zhezhao").css("height",a); <BR>} <BR>function nin(){ <BR>$("#dv").css("display","none"); <BR>$("#zhezhao").toggle(); <BR>} <BR>