2012-11-26 67 views
0

我定義了一個加載指示器,並且位置有問題。我的問題是
定位加載指示器,當它通過不同的機器看到不同的分辨率或屏幕尺寸不同的機器 。我該如何解決它!設置加載指示器的位置

這裏是我的代碼:

<body class="loadPage"> 
<form id="form1" runat="server"> 
    <asp:ScriptManager ID="ScriptManager1" runat="server"> 
    </asp:ScriptManager> 

    <div id="loadingLogo"> 
    <asp:Image ID="Image1" runat="server" ImageUrl="Images/Logo.png" /> 
    <hr class="line"/> 
    </div> 

    <div id="loadingIndicator" > 
    <syncfusion:WaitingPopup ID="WaitingPopup1" runat="server" CloseTimeOut="2000"  
       ClientObjectID="Popup1" PositionParent="Screen" 
       Width="250px" Height="50px" Alignment="MiddleRight" 
       InitiallyShown="True" DisableOnShowElementID="loadingIndicator"> 
    </syncfusion:WaitingPopup> 
    </div> 

</form> 

+0

如果查詢是相關的,Syncfusion意味着更好,您可以使用「Syncfusion」標記它。可能他們會在這裏迴應。 – Bharath

回答

0

你不寫,你想讓它定位,但我會建議使用的位置是:絕對的;或位置:固定;見http://www.w3schools.com/cssref/pr_class_position.asp

如果你想它居中的CSS可以像

#loadingIndicator { 
position: absolute; 
width: 200px; 
left: 50%; 
margin-left: -100px; 
top: 10px; 
} 

保證金左應該是你loadginIndicator減去一半的寬度,使其居中。

+0

對不起,我忘了寫它。它應顯示在右側的線(


) – H79

+0

好的是您的


您的網站的全寬?如果它然後下降並保留餘量並使用右側:0px;在我的CSS例子,並調整頂部適合 –

+0

thanx你的幫助,但我找到了我的問題的解決方案 – H79