日期:2014-05-17  浏览次数:20623 次

ifarme跳转浏览器兼容问题 ?
我总共有三个页面, index, top, main 小弟想用 iframe 刷新main ,但是在firefox下,点击链接回弹出新窗口,而ie下不会,怎么样设置,才回让firefox不弹出呢??? 小弟水平太有限,肯求各位大哥帮忙,由于发贴权限只有100,所以最多也就100分了,问题解决,保证结贴。
index:
 
<html>
 
<iframe src="top.php" name="top" scrolling="auto" height="15%" width="100%" frameborder="0" border="0" frameborder="no">
<iframe src="main.php" name="main" scrolling="auto" height="85%" width="100%" frameborder="0" border="0" frameborder="no">
</html>

top:

<html>
<body>
<ul id="nav">
<li><a href="#" id="current">首 頁</a></li>
  <li><a href="main.php?model=school&action=dis" target="main">school</a></li>
  <li><a href="main.php?model=user&action=dis" target="main">user</a></li>
  <li><a href="main.php?model=site&action=dis" target="main">site</a></li> 
   
</ul>
</body>
</html>

main
<?php
header("content-type:text/html; charset=utf-8");  
include_once("session.php");
?>
<head> 
 
 
</head> 
<body>  
<div id="content"> 
 
  <?php 
   
  $action = $_GET["action"];
  $model = $_GET["model"];
   
  $_SESSION['action']=$action;
  $_SESSION['operateid']=$operateid;
   
  if(isset($action)) {
  switch ($model) {
  case "school":  
  include_once("schoolproperties.php");
  break;
  case "user":
  include_once("userproperties.php");
  break; 
  case "site":
  include_once("siteproperties.php");
  break;
  default: include_once("welcome.php");
  }
  }
  ?>
</div>  
</div>  
</body> 
</html>

------解决方案--------------------
友情帮顶!
------解决方案--------------------
一定要iframe么?
试试这个index:
HTML code

<html>
<frameset rows="15%,85%">
<frame src="top.php" name="top"  scrolling="auto" height="15%" width="100%" frameborder="0"  border="0"  frameborder="no">
<frame src="main.php" name="main" scrolling="auto" height="85%" width="100%" frameborder="0"  border="0"  frameborder="no">
</frameset>
</html>

------解决方案--------------------
iframe貌似用parent吧