昨晚调试一个简单的html页面到两点,在vs2005的IDE中能正常预览显示图片,但是发布出去都是空白(IE7和Firefox均不能显示图片)! 但是同事说在IE6中能正常显示! 什么原因呢? 大侠帮我看看错误,谢谢了<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Submit.aspx.cs" Inherits="Submit" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>
<head runat ="server"><title>首页</title>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">
<form id ="form1"  runat ="server">
<table width="790" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="260" colspan="3"><img runat ="server" id ="img1" src ="Images/ad/1.jpg"  /></td>
  </tr>
  <tr>
    <td height="260" colspan="3" ><img runat ="server" id="img2" src="Images/ad/2.jpg" /></td>
  </tr>
  <tr>
    <td height="247" colspan="3" align="center" valign="middle" background="Images/ad/3.jpg" runat ="server">
    <%--<img runat ="server" id ="img3" src ="Images/ad/3.jpg" />--%>
    <table width="790" height="220" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="55%">&nbsp;</td>
        <td align="left" valign="bottom">
  
       
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
         
          <tr>
            <td width="30%" align="right" valign="middle" style="height: 23px">姓名:</td>
            <td align="left" valign="middle" style="height: 23px"> <asp:TextBox runat="server" Height="18px" Width="142px" ID="txtName"></asp:TextBox> <asp:RequiredFieldValidator ID = "reqName" ControlToValidate = "txtName" Runat = "server" ErrorMessage = "姓名不能为空"  Display="none"></asp:RequiredFieldValidator></td>
          </tr>
          <tr>
            <td width="30%" align="right" valign="middle" style="height: 23px">联系方式:</td>
            <td align="left" valign="middle" style="height: 23px"><asp:TextBox runat="server" Height="18px" Width="142px" ID="txtContact"></asp:TextBox><asp:RequiredFieldValidator
                    ID="RequiredFieldValidator1" runat="server" ErrorMessage="联系方式不能为空" Display ="None" ControlToValidate ="txtContact"></asp:RequiredFieldValidator></td>
          </tr>
          <tr>
            <td width="30%" height="22" align="right" valign="middle">学习语种:</td>
            <td align="left" valign="middle">
           <asp:DropDownList ID="dplLan" runat="server" Height="22px" Width="146px">
                                <asp:ListItem>小语种</asp:ListItem>
                                <asp:ListItem>成人英语</asp:ListItem>
                                <asp:ListItem>少儿英语</asp:ListItem>
                                <asp:ListItem>中文班</asp:ListItem>
                            </asp:DropDownList>
            </td>
              
          </tr>
          <tr>
            <td width="30%" align="right" valign="middle">留言咨询:</td>
            <td align="left" valign="middle"><asp:TextBox runat="server" Height="41px" Width="142px" ID="txtFrom" TextMode="MultiLine"></asp:TextBox><asp:RequiredFieldValidator ID = "reqFrom" ControlToValidate = "txtFrom" Runat = "server" ErrorMessage = "留言不能为空" Display ="none"></asp:RequiredFieldValidator></td>
          </tr>
          <tr>
            <td colspan="2" align="center" valign="middle"><asp:Button Runat = server ID = btnSubmit OnClick = btnSubmit_Click Text = "提交"></asp:Button><asp:ValidationSummary ID="ValidationSummary1" ShowSummary="false" ShowMessageBox="true" HeaderText="您不能提交资料,因为:" runat="server"/></td>
            </tr>
          <tr>
            <td height="16" colspan="2" align="center" valign="middle"></td>
          </tr>
        </table>
          
         </td>
      </tr>
    </table>
    </td>
  </tr>
  <tr>
    <td height="141"><a href="http://www.readingcafe.com.cn/list.aspx?id=29"><img src="images/ad/4.jpg" width="209" height="149" border="0"  runat ="server" id ="img4"/></a></td>
    <td><a href="http://www.readingcafe.com.cn/AboutUs.aspx"><img runat ="server" id ="img5" src="images/ad/5.jpg" width="196" height="149" border="0" /></a></td>
    <td width="385" height="283" rowspan="2" ><img  runat ="server" id ="img8" src ="Images/ad/8.jpg"/></td>
  </tr>
  <tr>
    <td><a href="mailto:[email protected]"><img src="images/ad/6.jpg" width="209" height="134" border="0" runat ="server" id ="img6" /></a></td>
    <td><a href="http://www.readingcafe.com.cn/list.aspx?id=34"><img src="images/ad/7.jpg" width="196" height="134" border="0" runat ="server" id ="img7" /></a></td>
  </tr>
  <tr>
    <td height="121" colspan="3"><img  runat ="server" id ="img9" src="images/ad/9.jpg" width="790" height="121" border="0" usemap="#Map" /></td>
  </tr>
</table>
</form></body>
<map name="Map" id="Map"><area shape="rect" coords="125,20,194,40" href="http://www.readingcafe.com.cn/en.aspx" /><area shape="rect" coords="209,20,272,40" href="http://www.readingcafe.com.cn/AboutUs.aspx" /><area shape="rect" coords="286,21,351,40" href="http://www.readingcafe.com.cn/recruit.aspx" /><area shape="rect" coords="366,21,430,40" href="mailto:[email protected]" /><area shape="rect" coords="444,20,508,39" href="http://www.readingcafe.com.cn/friendlink.aspx" /><area shape="rect" coords="524,22,587,40" href="http://www.readingcafe.com.cn/sitem.aspx" /><area shape="rect" coords="601,21,666,40" href="http://www.readingcafe.com.cn/GuestBook/default.aspx" /></map>
</html>

解决方案 »

  1.   

    <asp:ListItem>成人英语</asp:ListItem>
      

  2.   

    wj2929(Rěй)  大哥 ad 是个文件夹名称 不是广告的意思zorou_fatal   我到都是jpg 图片 这个重要吗? 我尝试该成部分的gif 也不行的
      

  3.   

    我知道啊
    但据我了解的,一些过滤插件经常会把包含ad字样的当成广告链接处理,从而过滤
    我用的过滤插件:
    Firefox下:AdBlock Plus
    IE7下:IE7pro
      

  4.   

    怎么我在我的ie6下不能显示图片呢? 有个同事他说的ie6 可以显示
      

  5.   

    ie7比ie6严格多了。有什么不好的。你的图片显示不出来和ie7恐怕没什么关系。
      

  6.   

    wj2929(Rěй)  大哥 我把ad文件夹 重新命名为 adv 还是不行 
    oldmoon  这些html 是asp。net 自己生成的 难道不兼容吗?
      

  7.   

    假如……只是假如……
    你的浏览器的编码设置错了的话……
    -----------------------
          CSDN 论坛助手 
      http://china-csdn.cn
      

  8.   

    老大,我不是说了吗,一些过滤插件经常会把包含ad字样的当成广告链接处理,从而过滤,你把ad改成adv不还是包含ad吗
    请看我在firefox浏览器下的抓图:
    http://219.234.86.88/download/1.jpg
      

  9.   

    另外你用IE浏览器,关闭所有你可能装的三方工具条,如google、yahoo等
    然后再浏览看看
      

  10.   

    ie7也没有问题啊。
    下面的代码只是换了图片,是能显示的,另外,既然采用xhtml.dtd,有些写法最好遵循xhtml规范
    <%@ Page Language="C#" AutoEventWireup="true" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat ="server"><title>首页</title>
    </head>
    <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">
    <form id ="form1"  runat ="server">
    <table width="790" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td height="260" colspan="3"><img runat ="server" id ="img1" src ="http://vista.levelup.cn/originalftp/ss/ffac/ff5.jpg"  /></td>
      </tr>
      <tr>
        <td height="260" colspan="3" ><img runat ="server" id="img2" src="http://vista.levelup.cn/originalftp/ss/ffac/ff5.jpg" /></td>
      </tr>
      <tr>
        <td height="247" colspan="3" align="center" valign="middle" background="Images/ad/3.jpg" runat ="server">
        <%--<img runat ="server" id ="img3" src ="Images/ad/3.jpg" />--%>
        <table width="790" height="220" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="55%">&nbsp;</td>
            <td align="left" valign="bottom">
      
           
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
             
              <tr>
                <td width="30%" align="right" valign="middle" style="height: 23px">姓名:</td>
                <td align="left" valign="middle" style="height: 23px"> <asp:TextBox runat="server" Height="18px" Width="142px" ID="txtName"></asp:TextBox> <asp:RequiredFieldValidator ID = "reqName" ControlToValidate = "txtName" Runat = "server" ErrorMessage = "姓名不能为空"  Display="none"></asp:RequiredFieldValidator></td>
              </tr>
              <tr>
                <td width="30%" align="right" valign="middle" style="height: 23px">联系方式:</td>
                <td align="left" valign="middle" style="height: 23px"><asp:TextBox runat="server" Height="18px" Width="142px" ID="txtContact"></asp:TextBox><asp:RequiredFieldValidator
                        ID="RequiredFieldValidator1" runat="server" ErrorMessage="联系方式不能为空" Display ="None" ControlToValidate ="txtContact"></asp:RequiredFieldValidator></td>
              </tr>
              <tr>
                <td width="30%" height="22" align="right" valign="middle">学习语种:</td>
                <td align="left" valign="middle">
               <asp:DropDownList ID="dplLan" runat="server" Height="22px" Width="146px">
                                    <asp:ListItem>小语种</asp:ListItem>
                                    <asp:ListItem>成人英语</asp:ListItem>
                                    <asp:ListItem>少儿英语</asp:ListItem>
                                    <asp:ListItem>中文班</asp:ListItem>
                                </asp:DropDownList>
                </td>
                  
              </tr>
              <tr>
                <td width="30%" align="right" valign="middle">留言咨询:</td>
                <td align="left" valign="middle"><asp:TextBox runat="server" Height="41px" Width="142px" ID="txtFrom" TextMode="MultiLine"></asp:TextBox><asp:RequiredFieldValidator ID = "reqFrom" ControlToValidate = "txtFrom" Runat = "server" ErrorMessage = "留言不能为空" Display ="none"></asp:RequiredFieldValidator></td>
              </tr>
              <tr>
                <td colspan="2" align="center" valign="middle"><asp:Button Runat = server ID = btnSubmit  Text = "提交"></asp:Button><asp:ValidationSummary ID="ValidationSummary1" ShowSummary="false" ShowMessageBox="true" HeaderText="您不能提交资料,因为:" runat="server"/></td>
                </tr>
              <tr>
                <td height="16" colspan="2" align="center" valign="middle"></td>
              </tr>
            </table>
              
             </td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td height="141"><a href="http://www.readingcafe.com.cn/list.aspx?id=29"><img src="http://www.boki.cn/blog/disk/pic/chinajoy060729-1.JPG" width="209" height="149" border="0"  runat ="server" id ="img4"/></a></td>
        <td><a href="http://www.readingcafe.com.cn/AboutUs.aspx"><img runat ="server" id ="img5" src="http://www.boki.cn/blog/disk/pic/chinajoy060729-1.JPG" width="196" height="149" border="0" /></a></td>
        <td width="385" height="283" rowspan="2" ><img  runat ="server" id ="img8" src ="http://www.boki.cn/blog/disk/pic/chinajoy060729-1.JPG" /></td>
      </tr>
      <tr>
        <td><a href="mailto:[email protected]"><img src="http://www.boki.cn/blog/disk/pic/chinajoy060729-1.JPG" width="209" height="134" border="0" runat ="server" id ="img6" /></a></td>
        <td><a href="http://www.readingcafe.com.cn/list.aspx?id=34"><img src="http://www.boki.cn/blog/disk/pic/chinajoy060729-1.JPG" width="196" height="134" border="0" runat ="server" id ="img7" /></a></td>
      </tr>
      <tr>
        <td height="121" colspan="3"><img  runat ="server" id ="img9" src="http://www.boki.cn/blog/disk/pic/chinajoy060729-1.JPG" width="790" height="121" border="0" usemap="#Map" /></td>
      </tr>
    </table>
    </form></body>
    <map name="Map" id="Map"><area shape="rect" coords="125,20,194,40" href="http://www.readingcafe.com.cn/en.aspx" /><area shape="rect" coords="209,20,272,40" href="http://www.readingcafe.com.cn/AboutUs.aspx" /><area shape="rect" coords="286,21,351,40" href="http://www.readingcafe.com.cn/recruit.aspx" /><area shape="rect" coords="366,21,430,40" href="mailto:[email protected]" /><area shape="rect" coords="444,20,508,39" href="http://www.readingcafe.com.cn/friendlink.aspx" /><area shape="rect" coords="524,22,587,40" href="http://www.readingcafe.com.cn/sitem.aspx" /><area shape="rect" coords="601,21,666,40" href="http://www.readingcafe.com.cn/GuestBook/default.aspx" /></map>
    </html>