frame framset 的页面显示不了 空白
例如php文件输出这样,
<!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>
<title>444</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="Text/Javascript" language="JavaScript">
<!--
if (window.top != window)
{
window.top.location.href = document.location.href;
}
//-->
</script>
<frameset rows="113,*" framespacing="0" border="0" id="frame-all">
<frame src="/404.html?act=top" id="header-frame" name="header-frame" frameborder="no" scrolling="no">
<frameset cols="200, *" framespacing="0" border="0" id="frame-body">
<frame src="/404.html?act=menu" id="menu-frame" name="menu_frame" frameborder="no" scrolling="yes">
<frame src="/404.html?act=main" id="main-frame" name="main_frame" frameborder="no" scrolling="yes">
</frameset>
</frameset><noframes></noframes>
<frameset rows="0, 0" framespacing="0" border="0">
<frame src="" id="hidd-frame" name="hidd-frame" frameborder="no" scrolling="no">
</frameset>
</head>
<body>
</body>
</html>
问题排查
1 把内容精简到最小 找不到原因
2 找到原因了。应该是php文件输出的时候带了bom之类的东西
标签:输出,frame,空白,framset,php,页面 From: https://blog.51cto.com/u_16120231/6404287