今天做了一个模态窗口,但是在模态窗口执行查询后,不是返回到当前页面而是重复的弹出新的查询结果窗口,为此苦恼了一阵子,通过查资料,解决方法如下:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>上级菜单选择页面</title>
<base target="_self" />
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<style type="text/css">
*{margin:0px ;padding:0px}
table{width:780px;heigh:600px;border:1px solid black}
td{border:1px solid black;cellspace:0px}
</style>
只需在head的标签下加入红色标示的代码,成功解决。

本文详细介绍了在使用模态窗口执行查询操作时遇到的问题,即查询结果窗口重复弹出而非返回到当前页面。通过分析并应用正确的代码实践,成功解决了这一困扰。文中提供了关键代码片段,帮助开发者避免类似错误。
1622

被折叠的 条评论
为什么被折叠?



