从网上找了很多相关的资料,但都没有效果.比如我现在要在iframe中嵌套baidu首页,即显示全部内容,有不出现滚动条.
如:
<iframeid="iframeID" frameBorder=0 scrolling=no src="http://www.baidu.com" width="100%"></iframe>src换成其他地址也能满足该要求请问如何实现?希望能有效果,最好把整个html代码粘帖出来,谢谢!

解决方案 »

  1.   

    <html>
     <head>
      <title> new document </title>
     </head>
     <body>
      <iframe id="iframeID" frameBorder="0" scrolling="no" src="http://www.google.com" width="100%" height="100%"></iframe>
     </body>
    </html>行不?
      

  2.   

    <html>
     <head>
      <title> new document </title>
     </head>
     <body>
      <input type="button" onclick="document.getElementById('iframeID').src='http://www.baidu.com'" value="goto baidu" />
      <iframe id="iframeID" frameBorder="0" scrolling="no" src="http://www.google.com" width="100%" height="95%"></iframe>
     </body>
    </html>
      

  3.   

    http://community.csdn.net/Expert/topic/5455/5455216.xml?temp=.1576959这个帖子,看全滴说。。
      

  4.   

    好像iframe跨域嵌套别的网页不能实现自适应大小的说
      

  5.   

    跨域的问题,可以先在服务期端做proxy代理,然后再转
      

  6.   

    同一个域还行,跨域的话FRAME里面的DOCUMENT.BODY.SCROLLHEIGHT是拒绝访问的
      

  7.   

    <iframe id="frmShow" src="http://www.baidu.com" scrolling="no" width="100%" frameborder="0"></iframe><script type="text/javascript" language="javascript">
        AutoIframe();    function AutoIframe()
        {
            if(document.readyState!='complete')
            {
                setTimeout( function(){AutoIframe();},25 );
                return;
            }
            else
            {
               var ifobj=document.getElementById("frmShow");
               ifobj.height= ifobj.contentWindow.document.body.scrollHeight;
            }
        }
    </script>