div等浮层在IE6下被下拉框遮挡的处理

由于IE6中DropDownList是Browser调用的系统控件,这种组件的显示优先级比普通的IE控件高,浮动层中的控件就不能够遮盖这些系统控件。

解决的办法是:做两个浮动层,一个浮动层的根标签是IFrame,另一个浮动层的根标签是Div,两个浮动层的位置、大小均相等,然后先显示IFrame浮动层,再显示Div浮动层,

这样IFrame浮动层就为Div浮动层遮盖住了下面的控件。

demo:

CSS:

<style type="text/css">
dl #iframe1{display:none;_display:block;position:absolute;top:0;left:0px;z-index:-1;filter:mask();110px;height:420px;}
</style>

aspx:

<li id="dictionary" runat ="server" ><a href="#">维护 </a>
 <dl >
      <dd>
          <a href="dictAll.aspx?TableType=0" target="_self" title="The">资产类型</a>
       </dd>
       <dd>
          <a href="dictAll.aspx?TableType=13" target="_self" title="Styling">服务级别</a>
          </dd>
          <iframe id="iframe1"></iframe>
 </dl>                   
</li>
原文地址:https://www.cnblogs.com/pfs1314/p/1681640.html