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

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

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

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

CSS: 

<style type="text/css">
dl #iframe1{display:none;_display:block;position:absolute;top:0;left:0px;z-index:-1;filter:mask();width: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>

dawei

【声明】:北京站长网内容转载自互联网,其相关言论仅代表作者个人观点绝非权威,不代表本站立场。如您发现内容存在版权问题,请提交相关链接至邮箱:bqsm@foxmail.com,我们将及时予以处理。