<iframe src="要引入的文件路径" hspace="0" width="160" height="475" scrolling="auto">
scrolling(就是滚动条)有三个值可选:yes,no,auto

解决方案 »

  1.   

    别忘了最后</iframe>
    scrolling等于"auto"的话就是根据width和height的大小来确定是否显示,如果超出了它们的范围就显示滚动条,否则不显示。等于no是不显示,yes显示
      

  2.   

    在子页面(框架里面的)上设置
    parent.document.all.parentframe.height=document.body.scrollHeightparentframe为父页面地ID
    这肯定有用
      

  3.   

    sorry
    parentframe为框架的名称这个试试
    document.all.parentframe.height=document.all.frames["parentframe"]document.body.scrollHeight
      

  4.   

    http://community.csdn.net/Expert/FAQ/FAQ_Index.asp?id=204846
      

  5.   

    不好意思看错了, flyskytoday(光风.每天进步一点)正解
      

  6.   

    谢谢楼上各位,
    但因为src引入的页面是动态而且不可干预的,所以我只能在frame中等页面加载完后才能动态计算,应该怎么做呢?
      

  7.   

    已找到解决方法,如下就可以了
    <iframe  width="100%" scrolling="NO" frameborder=0 src="new_page_1.htm" onload="this.style.height=parseInt(window.frames[0].document.body.scrollHeight);">
    </iframe>