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

简单的PHP程序问题
front.php
***************************************************************
<html>
<head>
<title>news</title>
</head>
<body>
<frameset rows="20%,*">
<frame src="head.php" scrolling=no>
  <frameset cols="30%,*" border=1>
  <frame src="improtant.php" name=improtant scrolling=no >
  <frameset rows="50%,*" border=1>
  <frame src="internal.php" name=internal scrolling=no>
  <frame src="overseas.php" name=overseas scrolling=no>
  </frameset>
  </frameset>
</frameset>
</body>
</html>
*****************************************************************
head.php
******************************************************************
<html>
<body>
<div align="center" ><font size=7 face="Arial, Helvetica"><b><i>news</i></b></font></div>
<div align="center"><img src="../img/title.gif" alt="title map"></div>
</body>
</html>
********************************************************
当我运行front.php时,为何结果一片空白。两个php文件我都放在同一工程目录下。在第二个程序head.php中我那个图片没法显示。

------解决方案--------------------
一般来说,一片空白表示你的语法出错了.
------解决方案--------------------
先看一下空白时源码是什么,也许从中可以找到原因。不行的话把这段代码变成html文件,再显示看能不能正常
------解决方案--------------------
你看你能运行head.php么
分开运行下,看看 improtant.php,internal.ph,poverseas.php都能否运行
这样好找错误
------解决方案--------------------
<body> 
<frameset>
两个标记不能同时存在的。改成下面的
HTML code


<html> 
<head> 
<title> news </title> 
</head> 

<frameset   rows="20%,*"> 
<frame   src="head.php"   scrolling=no> 
              <frameset   cols="30%,*"   border=1> 
              <frame   src="improtant.php"   name=improtant   scrolling=no   > 
                                  <frameset   rows="50%,*"   border=1> 
                                  <frame   src="internal.php"   name=internal   scrolling=no> 
                                  <frame   src="overseas.php"   name=overseas   scrolling=no> 
                                  </frameset> 
              </frameset> 
</frameset> 

</html>

------解决方案--------------------


放在
<html> 
<head> 
<title> news </title>
frameset rows="20%,*"> 
<frame src="head.php" scrolling=no> 
<frameset cols="30%,*" border=1> 
<frame src="improtant.php" name=improtant scrolling=no > 
<frameset rows="50%,*" border=1> 
<frame src="internal.php" name=internal scrolling=no> 
<frame src="overseas.php" name=overseas scrolling=no> 
</frameset> 
</frameset> 
</frameset> 
</head>
<body>
</body>
</html>
------解决方案--------------------