【问题标题】:How to block the drop down in IE6如何在IE6中阻止下拉菜单
【发布时间】:2011-06-27 16:05:02
【问题描述】:

在我的项目中,我使用的是更新进度条。单击按钮时,背景页面将被禁用。它在 IE7、Firefox 和 Chrome 中运行良好。但在 IE6 中,下拉菜单显示在进度条的后面。谁能帮我解决这个问题。代码如下:

<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="fp_t012stk.aspx.vb" Inherits="fp_t012stk" title="Current Stock Report" %>


   <asp:UpdateProgress id="UpdateProgress1" AssociatedUpdatePanelID="UpdatePanel1" runat="server" DisplayAfter="0">
<progresstemplate>

<div id="Layer1" style="top:45px; left:0px; width:80%; height:100%; z-index:1; background:gray; display:block; vertical-align:middle; text-align:center; padding:130px; font: 18px/1.6 Times New Roman; margin:0px 0px 0px 0px; background-color:Gray;filter: alpha(opacity=60); opacity: 0.1; width:76%; height:100%; overflow:auto; text-decoration:none; color:Black; position:absolute; top:0px; left:0%; margin-left:-10px"> 


                <asp:Image ID="imgloading" runat="server" ImageUrl="~/images/ajax-loader2.gif" /><br /> 
            </div> 


</progresstemplate>
    </asp:UpdateProgress>
    <br />
</asp:Content>

提前致谢

【问题讨论】:

  • 是客户端要求支持IE6吗?
  • 我倾向于同意 Babak 的方向...如果 IE6 不是必需的支持项目,我不会为它编写代码。 IE6 非常旧,运行 Windows 9x 的客户端会使用它。即使是最基本的计算机用户也平均使用 Windows XP(我在一家支持公司工作,距离我们收到 Windows 9x 或 IE6 电话至少 5 年了)。

标签: asp.net html css internet-explorer-6


【解决方案1】:

检查您的 html 输出。并查看下拉列表的 z-index 和进度条样式值是否。可能两者都有 1,或者下拉一个较小的值 ( 0 , -1) 。尝试指定进度条样式的最小值,而不是其他控件。

【讨论】:

  • 在此之前我没有设置任何 z 索引,但在 mozila 和 ie6 中效果很好
  • 是的,但不同的浏览器如何解释样式可能会有所不同。特别是 ie 6. 所以试一试..
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-09-16
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2010-11-21
  • 1970-01-01
相关资源
最近更新 更多