2015-12-05 33 views
0

我使用引导控件.i设置进度条样式z-index : 100000;。 但没有进度吧全部控制.how能做到吗? 如何强制更新进度控制出现在顶部?如何在所有控件上显示更新进度控制

<asp:ScriptManager ID="ScriptManager1" EnablePageMethods="true" LoadScriptsBeforeUI="true" ScriptMode="Release" runat="server" /> 
    <asp:UpdateProgress ID="uppMain" runat="server"> 
     <ProgressTemplate> 
      <div style="position: absolute; background: url(/Style/Engine/images/black-bg.png); top: 0px; left: 0px; width: 100%; height: 100%;"> 
       <div style="width: 150px; height: 20px;z-index:100002 !important; position: fixed; left: 50%; margin-left: -75px; top: 50%; margin-top: -10px; text-align: center;"> 
        <img id="imgLoading" alt="" src="/Style/Engine/images/loading.gif" /> 
       </div> 
      </div> 
     </ProgressTemplate> 
    </asp:UpdateProgress> 
<asp:UpdatePanel runat="server" ID="UpdatePanel1"> 
     <ContentTemplate> 
       ....... 
     </ContentTemplate> 
    </asp:UpdatePanel> 
+0

请发布您的完整代码或提供演示。 – Alex

+0

@shahrox你需要添加'AssociatedUpdatePanelID =“UpdatePanel1”'到'uppmain' – Webruster

+0

.............谢谢 – shahroz

回答

1

很难回答仅查看提供的代码。您可以使用开发人员工具栏/萤火虫轻松检查控制器的z-index,这些工具栏/萤火虫即将到达updateprogress上方,并给予z-index高于DIV的范围

您可以尝试的一件事是,将z-index指定给updateprogress中的第一个DIV控制(该div与“位置:绝对”)

相关问题