不要使用框架,使用iframe应该可以:)

解决方案 »

  1.   

    发过N次了,iframe也不行IE 5.5+ (使用Popup)http://msdn.microsoft.com/downloads/samples/internet/default.asp?url=/downloads/samples/internet/behaviors/library/menu/default.asp点Demo查看演示,点Download下载
      

  2.   

    iframe可行,建议用这个
    下面是偶同事做的一个例子<html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>无标题文档</title>
    <style type="text/css">
    <!--
    .cha {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #CC3333;
    text-decoration: none;
    }
    a.cha:hover {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #CC3333;
    text-decoration: underline;
    }
    body {
    margin-left: 0px;
    margin-top: 0px;
    }
    .cha01 {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #3300CC;
    text-decoration: none;
    line-height: 120%;
    }
    a.cha01:hover {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #3300CC;
    text-decoration: underline;
    line-height: 120%;
    }
    -->
    </style>
    <base target="main">
    </head><body>
    <table width="100%"  border="0" cellpadding="0">
      <tr>
        <td> </td>
        <td> </td>
        <td> </td>
      </tr>
      <tr>
        <td width="200"> </td>
        <td>
    <div id="menu" style="position:absolute; visibility:hidden; top:40px; left:204px; width:160px; height:200px;">
    <table cellspacing="1" bgcolor="#CCCCCC" width="100%" onmouseover="document.getElementById('menu').style.visibility='visible'" onmouseout="document.getElementById('menu').style.visibility='hidden'">
    <tr><td height="25" align="center" bgcolor="#ffffff"><a href="#" class="cha01">三个和尚没水吃</a></td></tr>
    <tr><td height="25" align="center" bgcolor="#ffffff"><a href="#" class="cha01">三个和尚没水吃</a></td></tr>
    <tr><td height="25" align="center" bgcolor="#ffffff"><a href="#" class="cha01">三个和尚没水吃</a></td></tr>
    <tr><td height="25" align="center" bgcolor="#ffffff"><a href="#" class="cha01">三个和尚没水吃</a></td></tr>
    <tr><td height="25" align="center" bgcolor="#ffffff"><a href="#" class="cha01">三个和尚没水吃</a></td></tr>
    </table>
    <iframe src="javascript:false" style="position:absolute; top:0px; left:0px; width:160px; height:200px; z-index:-1; filter='progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)';"></iframe>
    </div><a href="#" class="cha" onmouseover="document.getElementById('menu').style.visibility='visible'" onmouseout="document.getElementById('menu').style.visibility='hidden'">显示菜单</a><form>
    <select class="cha01"><option>这是一个测试用的form</option>
      <option>江山如此美丽</option>
      <option>小鸟儿飞翔吧</option>
    </select>
    </form></td>
        <td> </td>
      </tr>
      <tr>
        <td> </td>
        <td> </td>
        <td> </td>
      </tr>
    </table>
    <iframe style="position:absolute; top:53; left:153; width:287; height:237; z-index:-1; filter='progidDXImageTransform.Microsoft.Alpha(style0,opacity0)';"></iframe>
    </div>
    </body>
    </html>
      

  3.   

    原理是:菜单放在一个iframe里,把这个iframe置于最顶层(z-index:-1),并使之透明(opacity=0)
      

  4.   

    to bencalie(Bencalie) 
    iframe是绝对可以的 。 。 我自己做的时候就是用的iframe ...
    除了不能覆盖select外,其他的任何元素都是能够覆盖的
      

  5.   

    ricky460(阿酷) 我的例子可以盖住select,哈哈哈
      

  6.   

    是不是frame肯定不行了????
      

  7.   

    没有办法
    ifrmae也能做到与frame一样的效果
      

  8.   

    to shuangren(双刃) 我说的是菜单盖住iframe..也就是说菜单是一个单独的div,没有放在一个iframe里。。
    如果把菜单放在iframe里,用一个iframe盖住另一个iframe,当然可以实现盖住任何元素 。 。 。