设计了一个框架,可是放在里面的页面太大,框架能否根据插入的页面自动大小?

解决方案 »

  1.   

    http://blog.csdn.net/meizz/archive/2006/03/27/639857.aspx
      

  2.   

    try
    {
    if (self.location!=top.location)
    {
    parent.document.all("FM_FlowDetail").height = document.body.scrollHeight ;
    }
    }FM_FlowDetail是那个页面在父框架中的名字
      

  3.   

    http://blog.csdn.net/jxufewbt/archive/2006/05/24/752458.aspx
      

  4.   

    TO:jxufewbt(我的目标是5星)
    我试了没有成功一下是我的代码,请帮忙看看那里不行
    main.htm
    /////////////////////////////
    <html>
    <head>
    <TITLE></TITLE>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
    <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
    <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
    </head>
    <frameset rows="109,*" bordercolor="#ffffff" name="topset" style="TABLE-LAYOUT: auto" border="0"
    frameSpacing="0" frameBorder="0">
    <frame ame="topFrame" scrolling="no" noresize src="top.aspx">
    <frame id="WBS" src="query/index.aspx" name="mainFrame" scrolling="no" frameBorder="0"
    scrolling="no" width="100%">
    </frameset>
    <noframes>
    </noframes>
    </html>
    //////////////
    bottom.js代码
    -----------------------------
    parent.document.all("WBS").style.height=document.body.scrollHeight; 
    parent.document.all("WBS").style.width=document.body.scrollWidth; 
    -----------------query/index.aspx引用代码
    <script language="JavaScript" src="../bottom.js" /></SCRIPT>麻烦了
      

  5.   

    难道是frame是不行的????!!!!!!!!!