返回信息流在网上查说是CSS样式不兼容,但是改了几处还是不行,主要是一个单元格在IE7或360上单元格会变长,其他浏览器上就可以正常.
.login_table {
background-image: url(image/login_b.png);
font-size: 14px;
color: #FFF;
font-family: "Courier New", Courier, monospace;
margin:0px;
padding:0px;
}
.login_tabletd {
background-image: url(image/login.png);
margin:0px;
padding:0px;
}
.login_margin {
height: 18px;
margin:0px;
padding:0px;
}
.login_span {
margin:auto 0px;
}
这是CSS文件
<link href="login.css" rel="stylesheet" type="text/css" />
<style type="text/css">
body { margin-top: 100px;
}
</style>
<script type="text/javascript">
function MM_popupMsg(msg) { //v1.0
alert(msg);
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
</script>
</head>
<body>
<form id="form3" runat="server">
<table width="326" border="1" align="center" cellpadding="0" cellspacing="0" class="login_table" >
<tr>
<td height="83" colspan="3" class="login_table"><img src="image/login.png" width="340" height="80" align="absmiddle" /></td>
</tr>
<tr>
<td height="41" width="70" ><p class="login_margin"> 用户名</p></td>
<td colspan="2">
<asp:TextBox ID="A_Name" runat="server"></asp:TextBox>
<label for="select"></label>
<asp:DropDownList ID="A_mark" runat="server"
onselectedindexchanged="A_mark_SelectedIndexChanged">
<asp:ListItem Value="0" Selected="True">学生</asp:ListItem>
<asp:ListItem Value="1">管理员</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td width="70" height="41"><span class="login_margin"> 密码</span></td>
<td colspan="2">
<p>
<label for="textfield2"></label>
<asp:TextBox ID="A_PassWord" runat="server" TextMode="Password"></asp:TextBox>
<a href="Name.aspx">取回密码
</a></p>
</td>
</tr>
<tr>
<td height="47" colspan="3" >
<asp:Button ID="Att" runat="server" Text="登录" onclick="Att_Click"/>
<asp:Button ID="Reset" runat="server" Text="重置" onclick="Reset_Click"/></td><td width="0"></td>
</tr>
</table>
</form>
</body>
</html>
这是ASPX文件
求解呀!
这是一条镜像帖。来源:北邮人论坛 / dot-net / #3468同步于 2011/11/8
该镜像源已超过 30 天没有更新,可能在源站已被删除。
dotNET机器人发帖
ASP 编好网站以后为什么用不同的浏览器效果不一样
wayway
2011/11/8镜像同步3 回复
订阅后,新回复会通过你的通知中心匿名送达。
3 条回复