但是如果div不能超过框架 只要菜单的内容多了
他依然将被遮住 而显示不完整。

解决方案 »

  1.   

    你的框架是不是iframe?还是普通的框架页面
      

  2.   

    普通的。
    我现在在尝试 把div 写到一个 iframe 中。
    不知道可以不。
    你说呢?
      

  3.   

    不知道 iframe 可以超过 普通框架不。
      

  4.   

    嗯,把层写到iframe中吧,试一试,呵呵
      

  5.   

    怎么样 iframe 的高度为所有框架中最高的呢
    是 hspace 这个属性设为0 吗?
      

  6.   

    好像还是不行
    iframe是不是有什么属性要设置呢?
      

  7.   

    iframe只能位于普通框架之内,不能超越普通框架页面的
      

  8.   

    不使用普通框架,全部使用iframe,呵呵
      

  9.   

    你可以帮我把这个文件改为iframe的吗?
    我对框架不熟悉
    谢谢
    <html><head>
    <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
    <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <title>New Page 2</title>
    <base target="_main">
    </head><frameset rows="105,*" framespacing="0" border="0" frameborder="0">
      <frame name="header" scrolling="no" noresize target="main1" src="menu/csdn.jsp">
      <frame name="main1" src="login/help.jsp" scrolling="auto" noresize>
      <noframes>
      <body>  <p>此网页使用了框架,但您的浏览器不支持框架。</p>  </body>
      </noframes>
    </frameset></html>
      

  10.   

    LxcJie(肖冲*爱*捷捷) 
    帮我改一哈嘛。
      

  11.   

    <BODY leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0">
    <IFRAME width="100%" marginheight="0" marginwidth="0" vspace="0" hspace="0" height="105" frameborder="1" src="a.htm"></IFRAME>
    your main content here
    </BODY>
      

  12.   

    <iframe name=if1 frameborder="0" vspace="0" hspace="0" height="105" width="100%" name="header" scrolling="no" noresize target="main1" src="menu/csdn.jsp"/>
      
      <iframe name=if2 frameborder="0" height="100%" width="100%" name="main1" src="login/help.jsp" scrolling="no" noresize />我现在是这样写的。
    但是我怎么才能让 if1中的div在超过if2后既然显示 而不被if2遮盖。
      

  13.   

    把上面那个iframe设置为透明然后让其大小随内容改变而改变搜一下iframe的自适应,试一下,只是一个建议
      

  14.   

    我已经将 allowTransparency 设置为ture 依然不透明
    郁闷 。
      

  15.   

    http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/properties/allowtransparency.asp
      

  16.   

    简单的说web中框架大于表单大于层!这种设置已经不是网页开发的问题了!
    再说了!你所说的是让一个层存在于两个网页里面!你想可能吗??
      

  17.   

    你为什么要用两个框架呢??
    你可以尝试全部用层实现阿!我前两天就才做了一个阿!全部页面上都是用div实现的阿!
    有点麻烦就是了~~!
      

  18.   

    好的
    谢谢  LxcJie 的回答
    和 red_wolf的提醒
    我去试试
    我先给分了
    不行我再请教二位了哈。
    要免费哟:)
      

  19.   

    在第一个页面里放<div>,再在这个页面的单元格里边加上Ifram放置第二个页面,大致如下:
    <html>
    <body>
    <table>
    <tr><td><div></div></td></tr>
    <tr><td><ifrmae></iframe></td></tr>
    </table>
    </body>
    </html>
    没试过,不知道行不行,呵呵!
      

  20.   

    用document.createElement()创建一个iframe
    把你的所有div的内容都移到这个iframe中.