如何让这个js弹出的层始终居中?
如何让这个js弹出的层始终居中?点击下面的产品http://www.wangdefu.com/cn/product_search4.asp可以弹出层,我就想要这个弹出的层始终居中。left=documet.body.clientHeight-hight;//屏幕高-层高 ls数学不过关哇???
top=document.body.clientWidth-width/2;//屏幕宽-层宽
left=documet.body.clientHeight-hight/2;//屏幕高-层高 还是看不懂,能不能改了原JS上传一下,
页:
[1]
