昨晚调试一个简单的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%"> </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>
<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%"> </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>
解决方案 »
- 关于显示用户登录的信息栏, 求指教.
- 请问关于保持 session的问题
- 好心的同志们啦,我的毕业设计呀?就是这个问题解决不了,无法进行啦呀!你们一下要帮帮我呀!14号就要答辨了呀!帮帮我吧!
- 在vs.net中不能回车,也不能按退格键,是怎么回事?
- 关于DataGrid的更新问题~~~高手请进。
- 如何将asp.net web应用程序中的bin目录改为其他自定义的文件夹?
- 如何隐藏用户自定义控件<beisen:bot id="bot" Runat="server"></beisen:bot>
- 如何获取当前的url??
- 那位有日期时间的中文转换函数?
- 动态添加控件的事件响应问题?
- VS2005中DATAGRIDVIEW的使用
- [安全问题]通过浏览器发送的数据是否可以伪造?
但据我了解的,一些过滤插件经常会把包含ad字样的当成广告链接处理,从而过滤
我用的过滤插件:
Firefox下:AdBlock Plus
IE7下:IE7pro
oldmoon 这些html 是asp。net 自己生成的 难道不兼容吗?
你的浏览器的编码设置错了的话……
-----------------------
CSDN 论坛助手
http://china-csdn.cn
请看我在firefox浏览器下的抓图:
http://219.234.86.88/download/1.jpg
然后再浏览看看
下面的代码只是换了图片,是能显示的,另外,既然采用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%"> </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>