left = (屏幕分辨率宽度-窗口宽度)/2 top = (屏幕分辨率高度-窗口高度)/2 屏幕分辨率宽度 = screen.width or availWidth 屏幕分辨率高度 = screen.height or availHeightExample: 高度:x 宽:y window.open('*.*','','top='+(window.screen.height-x)/2+',left='+(window.screen.width-y)/2+',width=x,height=y');也可用window.moveTo(x,y);
top = (屏幕分辨率高度-窗口高度)/2 屏幕分辨率宽度 = screen.width or availWidth
屏幕分辨率高度 = screen.height or availHeightExample: 高度:x 宽:y
window.open('*.*','','top='+(window.screen.height-x)/2+',left='+(window.screen.width-y)/2+',width=x,height=y');也可用window.moveTo(x,y);