对已经打开的showmodaldialog使其能够center(此dialog高度和宽度都已经改变) http://www.csdn.net/Develop/read_article.asp?id=15113 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你的意思是让showmodaldialog打开的窗口居中显示吗?? 可以啊showModalDialog('1.html',10,'center:yes;'); other.html<html><body><input type="button" value="dis" onClick="showModalDialog('test6.htm','','dialogleft=0;')"></body></html>test6.html<html><body ><input type=button value=center onclick="window.dialogLeft = (window.screen.availWidth - parseInt(window.dialogWidth)) / 2;window.dialogTop = (window.screen.availHeight - parseInt(window.dialogHeight)) / 2"><input id=pp type=text maxLength=4 value=exam></body></html> 动态脚本树问题!!!! 一个JSP接收参数 传参数问题 郁闷,又是JS无缝滚动的问题,大家帮我看看问题出在哪里了 多个视频文件循环播放 鼠标坐标的限制问题 如果iframe页面发生改变,则提示,代码应该怎么写 easyui怎么样获得datagrid 选中行的index值? 这种效果的代码是用js吗 请教一个JS, B页面传一个值到A页面的<INPUT> json数据从action中传到前台页面的问题 如何动态改变网页的刷新时间? 急!
showModalDialog('1.html',10,'center:yes;');
<html><body><input type="button" value="dis" onClick="showModalDialog('test6.htm','','dialogleft=0;')">
</body>
</html>
test6.html<html>
<body ><input type=button value=center onclick="window.dialogLeft = (window.screen.availWidth - parseInt(window.dialogWidth)) / 2;window.dialogTop = (window.screen.availHeight - parseInt(window.dialogHeight)) / 2">
<input id=pp type=text maxLength=4 value=exam>
</body>
</html>