页面显示问题
下面的login.aspx登陆页面,不能按CSS样式表中那样正常显示,编译时没出错。但改为jsp页面的话(当然也把前面的几行都改成jsp的),可以正常显示。在下初学,请指教好吗?
谢谢!
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="login.aspx.cs" Inherits="login" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.
<html xmlns="http://www. >
<head runat="server">
<title>登陆系统</title>
<LINK rel="stylesheet" type="text/css" href="web.css">
<Script Language="JavaScript" type="text/JavaScript" src="login.js"></script>
</head>
<body>
<center><div id="headline"> <p> </p> <p>软068班学生档案管理系统 </p></div>
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
<div class="logs">
<div class="logtext">
<form name="Login" id="Login" action="chklogin.asp" method="post" target="_parent" onSubmit="return CheckForm();">
<ul>
<li>帐 号:
<input type="text" class="input_text" name="UserName"
onMouseOver="this.style.background='#E1F4EE';"
onMouseOut="this.style.background='#FFFFFF'" onFocus="this.select();"
onkeydown="if(event.keyCode==13)event.keyCode=9"/></li>
<li>密 码:
<input name="Password" type="password" class="input_text"
onMouseOver="this.style.background='#E1F4EE';"
onMouseOut="this.style.background='#FFFFFF'" onFocus="this.select();"
onkeydown="if(event.keyCode==13)event.keyCode=9"/></li>
<li>验 证 码:
<input name="CheckCode" type="text" class="input_text" style="width:60px;"
onMouseOver="this.style.background='#E1F4EE';"
onMouseOut="this.style.background='#FFFFFF'" onFocus="this.select();" size='4' maxlength='4' />
<img src="../inc/checkcode.asp" alt="看不清楚?请点击刷新"
onclick="this.src=this.src+'?'+Math.random();" style="CURSOR:hand;"></li>
</ul>
<div class="log_but">
<input type="image" name="s1" id=s1 src="img/login_botton.gif" onFocus="this.blur()">
</div>
</form>
</div>
</div>
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="login.aspx.cs" Inherits="login" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.
<html xmlns="http://www. >
<head runat="server">
<title>登陆系统</title>
<LINK rel="stylesheet" type="text/css" href="web.css">
<Script Language="JavaScript" type="text/JavaScript" src="login.js"></script>
</head>
<body>
<center><div id="headline"> <p> </p> <p>软068班学生档案管理系统 </p></div>
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
<div class="logs">
<div class="logtext">
<form name="Login" id="Login" action="chklogin.asp" method="post" target="_parent" onSubmit="return CheckForm();">
<ul>
<li>帐 号:
<input type="text" class="input_text" name="UserName"
onMouseOver="this.style.background='#E1F4EE';"
onMouseOut="this.style.background='#FFFFFF'" onFocus="this.select();"
onkeydown="if(event.keyCode==13)event.keyCode=9"/></li>
<li>密 码:
<input name="Password" type="password" class="input_text"
onMouseOver="this.style.background='#E1F4EE';"
onMouseOut="this.style.background='#FFFFFF'" onFocus="this.select();"
onkeydown="if(event.keyCode==13)event.keyCode=9"/></li>
<li>验 证 码:
<input name="CheckCode" type="text" class="input_text" style="width:60px;"
onMouseOver="this.style.background='#E1F4EE';"
onMouseOut="this.style.background='#FFFFFF'" onFocus="this.select();" size='4' maxlength='4' />
<img src="../inc/checkcode.asp" alt="看不清楚?请点击刷新"
onclick="this.src=this.src+'?'+Math.random();" style="CURSOR:hand;"></li>
</ul>
<div class="log_but">
<input type="image" name="s1" id=s1 src="img/login_botton.gif" onFocus="this.blur()">
</div>
</form>
</div>
</div>
<div class="footer">
Copyright<br /> © 软068班 李峰<br />2008年6月
</div>
</center>
<script language="JavaScript" type="text/JavaScript">
SetFocus();
</script>
</body>
</html>