JS控制窗口居中

xiaoxiao2021-03-01  5

<html> <script language="JavaScript"> var x=640; var y=480; var xx=(window.screen.width-x)/2; var yy=(window.screen.height-y)/2; function winsize(){ window.resizeTo(x,y); window.moveTo(xx,yy); setTimeout("winsize()",50)}</script> <body οnlοad=winsize() ;οnresize=winsize()> </body> </html> 相关资源:js打开新窗口,js打开居中窗口,js打开自定义窗口
转载请注明原文地址: https://www.6miu.com/read-3650212.html

最新回复(0)