var width="1024"; //弹出窗口的宽度;
var height="700"; //弹出窗口的高度;
var top = (window.screen.height-30-height)/2; //获得窗口的垂直位置;
var left = (window.screen.width-10-width)/2; //获得窗口的水平位置;
window.open('newPage.action','','height='+height+',width='+width+',top='+top+',left='+left+',toolbar=yes,menubar=yes,scrollbars=yes,resizable=yes,location=yes,status=yes');
JS新建一个页面,并让其居中
最新推荐文章于 2021-06-04 18:09:50 发布