首页 > 其他 > 详细

Example005

时间:2016-03-12 22:51:41      阅读:220      评论:0      收藏:0      [点我收藏+]

<!-- 实例005控制弹出窗口居中显示 -->
<head>
<meta charset="UTF-8">
</head>
<form action="" name="form" method="post">
<input type="button" name="button" value="创建行窗口" onclick="hs()">
</form>
<script>
function hs() {
var ss = window.open("index.html","new","height=100,width=300");
width = screen.width;
height = screen.height;
ss.moveTo((width-300)/2,(height-100)/2);
}
</script>

Example005

原文:http://www.cnblogs.com/handsomehan/p/5270323.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!