这是我用来测试的页面代码。
1:主页面
<html>
<head>
<title>无标题文档</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<frameset cols="174,*" frameborder="yes" border="3" framespacing="0" rows="*"> 
  <frame name="leftFrame" scrolling="NO" noresize src="2.htm">
  <frame name="mainFrame" src="3.htm">
</frameset>
<noframes> 
<body bgcolor="#FFFFFF" text="#000000">
</body>
</noframes> 
</html>
2: 2.htm
<html>
<head>
<title>无标题文档</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head><body bgcolor="#FFFFFF" text="#000000">
<a href="index.htm"  target="mainframe">fasdasdfsdfadffasd </a>
</body>
</html>
3 3.htm
<html>
<head>
<title>无标题文档</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head><body bgcolor="#FFFFFF" text="#000000">
<a href="index.htm"  target="leftframe"> sfadsdfasdfasdfsdfa </a>
</body>
</html>希望能帮我再看一下, 好象代码是没有什么问题, 如果是没有问题那么到底浏览器应该如何设置呢?

解决方案 »

  1.   

    我的系统用的是win2000 + apache +php4
      

  2.   

    我测试了代码, 是php 有问题的。 和frame没有关系。
      

  3.   

    你的Frame应该没有问题,请查一下你的系统配置。
      

  4.   

    <a href="index.htm"  target="mainframe">fasdasdfsdfadffasd </a>
                                 ^^^^^^^^^^^^^请注意大小写,改成mainFrame
    <a href="index.htm"  target="leftframe"> sfadsdfasdfasdfsdfa </a>
                                 ^^^^^^^^^^^^^这里也一样,请注意大小写,改成leftFrame