<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<?php
echo "end";
?>
<frameset rows="80,*" cols="*" frameborder="no" border="0" framespacing="0">
  <frame src="http://www.baidu.com" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" />
</frameset>
<noframes><body>
</body>
</noframes></html>如果去掉 echo "end" 则能看到 www.baidu.com 页面,如果加上级echo "end" 则不可以
我这个页面没有任何session_start 的
请问是什么原因

解决方案 »

  1.   

    这个是HTML的问题了,输出了end就不符合w3c规则了
      

  2.   

    大哥  你太狠了吧  能这样玩HTML啊?
      

  3.   


    哈哈 没少一个BODY 是写在最后。内容没进BODY 呵呵。 HTML还可以这样玩。
      

  4.   

    页面用frame了就
    不要在里面输出无关的东西了
    那样不符合套路吧
    再说写输出也应该写在body里面那