日期:2014-05-16  浏览次数:20444 次

网站后台登陆后iframe框架是空白,其他页面单独可以打开
PHP后台登陆后adminmange_Index.php页面是个框架页,包含3个页面,代码如下:
<?php
define('IN_DOUCO', true);
define('NO_CHECK', true);
require(dirname(__FILE__) . '/include/conn.php');
$db->admin_check($_SESSION["user_id"],$_SESSION["shell"]);
if($_GET["action"]=="Logout"){
$db->logout();
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>网站后台管理中心</title>
</head>
  <frameset rows="*" cols="181,*" framespacing="0" frameborder="1" border="false" id="frame" scrolling="yes">
  <frame name="left" scrolling="yes" marginwidth="0" marginheight="0" src="Admin_Left.html">
  <frameset framespacing="0" border="false" rows="35,*" frameborder="0" scrolling="yes">
    <frame name="top" scrolling="no" src="Admin_Top.html">
    <frame name="right" scrolling="yes" src="Admin_Main.html">
  </frameset>
</frameset><noframes></noframes>
<noframes>
  <body leftmargin="2" topmargin="0" marginwidth="0" marginheight="0">
  <p>你的浏览器版本过低!!!本系统要求IE5及以上版本才能使用本系统。</p>
  </body>
</noframes>
</html>
在浏览器上面解析后是空白,右键查看源码确能看到代码,但是浏览器就是个空白,其他页面我单独运行了下没问题,搞了一天了不知道怎么回事?conn.php是配置页面。
------解决方案--------------------
这种问题以前遇见过呢。如果你的页面代码没错的话,那就BOM的问题了,下个编辑器重新保存一下文件,应该就OK了。
------解决方案--------------------
一定是BOM问题了,你可能用记事本打开另存为UTF-8了,这时候就会产生BOM头,你用dearm打开,修改—页面属性—标题编码里面看下那个BOM签名是不是打钩了,把钩去掉,保存就好了。