网页布局不能兼容IE6问题

fanxiaolin84 2013-12-19 02:28:41
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head runat="server">
<title>运城市热能抄表及远程监控分析系统</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<link href="css/css.css" rel="stylesheet" type="text/css" />

<script type="text/javascript">
function onKeyDown(ImageButton2) {
if (event.keyCode == 13) {
event.keyCode = 9;
event.returnValue = false;
document.all[ImageButton2].click();

}
}
</script>

</head>
<body style="background-color: #e1efde">
<form id="Form1" method="post" runat="server">
<table align="center" cellpadding="0" cellspacing="0" width="1024px" height="768px"
style="border: 1px solid #666666; background-image: url('images/logo.png'); background-repeat: no-repeat;">
<tr>
<td>
<table align="left" cellpadding="0" cellspacing="0" style="width: 152px; height: 102px;
margin-top: 274px; margin-left: 721px;" >
<tr>
<td height="37px">
<asp:TextBox ID="tx_UserName" Style="width: 149px; height: 25px" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td height="30px">
<input id="tx_Password" style="width: 149px; height: 25px" type="password" maxlength="16"
name="tx_Password" runat="server" />
</td>
</tr>
<tr>
<td height="35px" align="center" valign="bottom">

<asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/images/btnLogin.png"
OnClick="ImageButton2_Click" Height="23px" />
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</html>

在IE6浏览器有点变形了,如下图:
但是在IE7以上浏览器显示是正常的,这个怎么修改啊?
...全文
86 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
抛弃吧,折腾啥,征服客户
mariday 2013-12-19
  • 打赏
  • 举报
回复
先在IE6搞正常再放到IE7上
Im_Sorry 2013-12-19
  • 打赏
  • 举报
回复
引用 楼主 fanxiaolin84 的回复:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head runat="server"> <title>运城市热能抄表及远程监控分析系统</title> <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1"> <meta name="CODE_LANGUAGE" content="C#"> <meta name="vs_defaultClientScript" content="JavaScript"> <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"> <link href="css/css.css" rel="stylesheet" type="text/css" /> <script type="text/javascript"> function onKeyDown(ImageButton2) { if (event.keyCode == 13) { event.keyCode = 9; event.returnValue = false; document.all[ImageButton2].click(); } } </script> </head> <body style="background-color: #e1efde"> <form id="Form1" method="post" runat="server"> <table align="center" cellpadding="0" cellspacing="0" width="1024px" height="768px" style="border: 1px solid #666666; background-image: url('images/logo.png'); background-repeat: no-repeat;"> <tr> <td> <table align="left" cellpadding="0" cellspacing="0" style="width: 152px; height: 102px; margin-top: 274px; margin-left: 721px;" > <tr> <td height="37px"> <asp:TextBox ID="tx_UserName" Style="width: 149px; height: 25px" runat="server"></asp:TextBox> </td> </tr> <tr> <td height="30px"> <input id="tx_Password" style="width: 149px; height: 25px" type="password" maxlength="16" name="tx_Password" runat="server" /> </td> </tr> <tr> <td height="35px" align="center" valign="bottom"> <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/images/btnLogin.png" OnClick="ImageButton2_Click" Height="23px" /> </td> </tr> </table> </td> </tr> </table> </form> </body> </html> 在IE6浏览器有点变形了,如下图: 但是在IE7以上浏览器显示是正常的,这个怎么修改啊?
掉美工把!

62,046

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧