2013-03-29 60 views
2

在我的aspx文件顯示,圖片無法在Internet Explorer中

<div id="blueBar"> 
     <div style="position: absolute;"> 
      <asp:Image ID="Image1" runat="server" ImageUrl="~/Styles/images/blueBar_01.jpg" Width="150px" 
       Style="margin-top: 4px" /><br /> 
     </div> 
     <div style="top: 35%; position: absolute"> 
      <asp:Image ID="Image2" runat="server" ImageUrl="~/Styles/images/blueBar_02.jpg" Width="150px" /><br /> 
     </div> 
     <div style="position: absolute; bottom: 0"> 
      <asp:Image ID="Image3" runat="server" ImageUrl="~/Styles/images/blueBar_03.jpg" Width="150px" /><br /> 
     </div> 
    </div> 

Firefox瀏覽器可以顯示圖像(圖像1,圖像2,圖像3)。
但Internet Explorer無法顯示!我看到十字標誌。我想知道爲什麼以及如何解決?
我使用的IE版本(8.0.7601.17514)

+0

一定要檢查源代碼,看看到底爲其生成你的圖像來源。你應該能夠確定它指向的位置並從那裏改正它。 – illinoistim

回答

1

,如果你的風格是夾在根級別,嘗試,如: -

<div id="blueBar"> 
     <div style="position: absolute;"> 
      <asp:Image ID="Image1" runat="server" ImageUrl="Styles/images/blueBar_01.jpg" Width="150px" 
       Style="margin-top: 4px" /><br /> 
     </div> 
     <div style="top: 35%; position: absolute"> 
      <asp:Image ID="Image2" runat="server" ImageUrl="Styles/images/blueBar_02.jpg" Width="150px" /><br /> 
     </div> 
     <div style="position: absolute; bottom: 0"> 
      <asp:Image ID="Image3" runat="server" ImageUrl="Styles/images/blueBar_03.jpg" Width="150px" /><br /> 
     </div> 
    </div> 
+0

仍然不顯示在ie! – zey