2013-03-29 59 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