`
星夜的遐想
  • 浏览: 182125 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

js开发模态窗口执行查询后重复弹出的解决方法

阅读更多

今天做了一个模态窗口,但是在模态窗口执行查询后,不是返回到当前页面而是重复的弹出新的查询结果窗口,为此苦恼了一阵子,通过查资料,解决方法如下:

 

<!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的标签下加入红色标示的代码,成功解决。

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics