<script>
//弹出窗口居中显示
functionopenWin(){
varhdc=window.open("product1_add.html","_blank",'height=200px,width=400px,status=yes,toolbar=no,menubar=no,location=no');
width=screen.width;
height=screen.height;
hdc.moveTo((width-400)/2,(height-200)/2);
}
</script>
弹出窗口居中显示
原创
©著作权归作者所有:来自51CTO博客作者yixiaoqun的原创作品,请联系作者获取转载授权,否则将追究法律责任
下一篇:我的友情链接
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
java中如何使窗体居中
在所有的window类的子类中,都有继承自winodw类的setLocationRelativeTo方法。这个方法是将窗体置于参数组件的中心,我们通常使用setLocationRelativeTo(null)来使我们的窗体位于屏幕正中心。
java 职场 休闲 窗体居中 setLocationRelativeT