<!-- 下面定义的这个iframe是为了解决弹出的窗口会被OCX控件挡住的问题 -->
      <iframe id="top_iframe" style="position:absolute;z-index:9;display:none;
         width:expression(this.nextSibling.offsetWidth);
         height:expression(this.nextSibling.offsetHeight);
         top:expression(this.nextSibling.offsetTop);
         left:expression(this.nextSibling.offsetLeft);" 
         frameborder="0">
      </iframe>
      
      <form name="BackhaulForm" action="<%=sPostUrl%>"
        style="position:absolute;display:none;z-index:10;" method="post">      </form>      类似上面这样,把form换成你的div就行了,记得设置style中的z-index:10

解决方案 »

  1.   

    <div style="z-index:10;position:absolute;width:100;height:18;overflow:hidden;" onmouseover="this.style.height=100;" onmouseout="this.style.height=18;">
    <iframe  style="position:absolute;z-index:-1;width:100%;height:100%;top:0;left:0;scrolling:no;" frameborder="0" src="about:blank"></iframe>
    <div style="background-color:#cccccc;">aaaaaaa<br>bbbbbbb<br>ccccccc<br>ccccccc<br>ccccccc<br>ccccccc</div>
    </div><select style="width:200" ><option>test0<option>test1<option>test2<option>test3</select>
      

  2.   

    iframe 在这里起到什么作用?
      

  3.   

    iframe的优先权高于select框,可以挡住他
      

  4.   

    iframe的优先权高于select框,可以挡住他
      

  5.   

    是不是select的优先权大于div?
      

  6.   

    Div被Select挡住,是一个比较常见的问题。
    有的朋友通过把div的内容放入iframe或object里来解决。
    可惜这样会破坏页面的结构,互动性不大好。这里采用的方法是:虽说div直接盖不住select
    但是div可以盖iframe,而iframe可以盖select,
    所以,把一个iframe来当作div的底,
    这个div就可以盖住select了.
      

  7.   

    TO JK_10000(JK):
    采用你的方法可以达到select挡住的问题,但是在包含iframe的div在其隐藏的时候也挡住了文本框,这样在用户操作的时候,无法聚焦到文本框上?你有什么好的办法?