日期:2014-05-18  浏览次数:20503 次

【背景图片不显示】
HTML code
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>抽号系统</title>
    <link href="css/StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
      <form id="form1" runat="server" >
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div style="text-align:center"> 
          <br />
    <br />
    <br />
    <br />
       
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
           <ContentTemplate>
             <asp:Timer ID="Timer1" runat="server" Interval="100" ontick="Timer1_Tick" Enabled="false">
             </asp:Timer>
             <asp:Label ID="Label1" runat="server" Text="大区" ForeColor="Red" BorderStyle="None" 
            Font-Size="76px" Height="76px" Width="306px"></asp:Label>
           </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    <br />
    <br />
    <br />
    <br />
    <div>
    <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="开始" 
            Height="37px" Width="86px" />
        <asp:Button ID="Button2" runat="server"    Height="37px" Width="86px"
            Text="刷新" onclick="Button2_Click"    />
        <asp:Button ID="asdasda" runat="server" Text="重置"  Height="37px" Width="86px" onclick="asdasda_Click" />
    </div>
    
    
    
    <div style="text-align:center"> 
          <br />
    <br />
    <br />
    <br />
       
        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
           <ContentTemplate>
             <asp:Timer ID="Timer2" runat="server" Interval="100" ontick="Timer2_Tick" Enabled="false">
             </asp:Timer>
             <asp:Label ID="Label2" runat="server" Text="姓名" ForeColor="Red" BorderStyle="None" 
            Font-Size="76px" Height="76px" Width="306px"></asp:Label>
           </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    <br />
    <br />
    <br />
    <br />
    <div>
    <asp:Button ID="dasdahhh" runat="server"  Text="开始" 
         Height="37px" Width="86px" onclick="dasdahhh_Click"   />
      
         
    </div>
    </form>
</body>
</html>


CSS code
body
{
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    text-align: center;
    color: #000000;
    background-color: #FFFFFF;
    background-image: url(../img/1111.jpg);
    background-repeat: repeat-y;
    background-position: center;
    margin: 0;
}


编辑器里面点击设计的时候 是显示的。浏览器浏览的时候就不显示出来了

------解决方案--------------------
你在页面中写<img src="../img/1111.jpg">能出来吗

如果不能出来,问题有3
1,路径是错误的
2,没有匿名访问权限
3,图像格式不是rgb
------解决方案--------------------