<html>
<head>
</head>

<frameset rows="*" cols="180,*" frameborder="no" border="0" framespacint="0">
<frame src="www.sina.com" name="left">
<frame src="www.163.com" name="right">
</frameset>
<body>
</body>
</html>
为什么我在HTML文件中写入这个,显示不出网页呢!

解决方案 »

  1.   

    frameset 和body 不能同时出现...只能有一个...也就是说有了frameset 就不能有body
      

  2.   

    frameset 和body冲突
    去掉body
      

  3.   

    重要事项:您不能与 <frameset></frameset> 标签一起使用 <body></body> 标签。不过,如果您需要为不支持框架的浏览器添加一个 <noframes> 标签,请务必将此标签放置在 <body></body> 标签中!参考:
      

  4.   

    写在BODY中
    <html>
    <head></head>
    <body>
    <iframe id="ifr" name="ifr" width="100%" height="500" src="www.sina.com"></iframe>
    </body>
    </html>
      

  5.   

    <frame src="http://www.sina.com" name="left">
      

  6.   

    <html>
    <head>
    </head><frameset rows="*" cols="180,*" frameborder="no" border="0" framespacint="0">
    <frame src="http://www.sina.com" name="left">
    <frame src="http://www.163.com" name="right">
    </frameset>
    <body>
    </body>
    </html>
     试一下上面的程式
      

  7.   

    <html>
    <head>
    </head>
    <frameset rows="*" cols="180,*" frameborder="no" border="0" framespacint="0">
    <frame src="http://www.sina.com" name="left">
    <frame src="http://www.163.com" name="right">
    </frameset>
    </html>