第一段,pizza.jsp<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
<title>Take the Pizza</title>
<style type="text/css">
H1 {
font-size: 12pt;
font-weight: bold;
}
.missing {
color: red;
}</style></head><body>
<form action="process.jsp" method="post">
<p>欢迎来到西岭Pizza店,请您填写下面信息以便预定Pizza</p>
<table>
<tr>
<td>Name:</td>
<td>
<input type = "text" name = "name" size = 30 value="${sessionScope.name}" maxlength = "30"/>
</td>
</tr>
<tr>
<td>Address:</td>
<td>
<textarea rows="4" cols="40" name = "address" maxlength = "70"/>${sessionScope.address}</textarea>
</td>
</tr>
</table>
<input type="submit" value="Place Order"/></form>
</body></html>
第二个:
<%@ page contentType="text/html;charset=UTF-8"%>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link href="Styles/style.css" rel="stylesheet" type="text/css">
<title>数据管理员登陆</title>
</head>
<body>
<h3 style="color:red" align="left">请务必妥善管理数据!</h3>
<form name="adminlogin" method="post" action="">
<table>
<tr>
<td>管理员ID:</td>
<td><input name="admin_id" type="text" id="admin_id" size="30" maxlength="30"></td>
</tr>
<tr>
<td>密码:</td>
<td><input name="admin_passwd" type="password" id="admin_passwd" size="30" maxlength="30"></td>
</tr>
<tr>
<td><input type="submit" name="submit" value="提交"></td>
<td><input type="reset" name="reset" value="重置"></td>
</tr>
</table>
<table>
<tr><td>Who</td><td>Are</td><td>You</td></tr>
<tr><td>I</td><td></td><td>You</td></tr>
</table>
</form>
<p>
<%@ include file="/Include/footer.jspf" %>
</p>
</body>
</html>
以上两个页面都是将表单况在table里面,不想它出表格线,可是为什么第一个能达到目的,不画表格线,而第二个却怎么样调整包括加Border属性都会画出线来呢?
求解!!!!
<html>
<head>
<title>Take the Pizza</title>
<style type="text/css">
H1 {
font-size: 12pt;
font-weight: bold;
}
.missing {
color: red;
}</style></head><body>
<form action="process.jsp" method="post">
<p>欢迎来到西岭Pizza店,请您填写下面信息以便预定Pizza</p>
<table>
<tr>
<td>Name:</td>
<td>
<input type = "text" name = "name" size = 30 value="${sessionScope.name}" maxlength = "30"/>
</td>
</tr>
<tr>
<td>Address:</td>
<td>
<textarea rows="4" cols="40" name = "address" maxlength = "70"/>${sessionScope.address}</textarea>
</td>
</tr>
</table>
<input type="submit" value="Place Order"/></form>
</body></html>
第二个:
<%@ page contentType="text/html;charset=UTF-8"%>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link href="Styles/style.css" rel="stylesheet" type="text/css">
<title>数据管理员登陆</title>
</head>
<body>
<h3 style="color:red" align="left">请务必妥善管理数据!</h3>
<form name="adminlogin" method="post" action="">
<table>
<tr>
<td>管理员ID:</td>
<td><input name="admin_id" type="text" id="admin_id" size="30" maxlength="30"></td>
</tr>
<tr>
<td>密码:</td>
<td><input name="admin_passwd" type="password" id="admin_passwd" size="30" maxlength="30"></td>
</tr>
<tr>
<td><input type="submit" name="submit" value="提交"></td>
<td><input type="reset" name="reset" value="重置"></td>
</tr>
</table>
<table>
<tr><td>Who</td><td>Are</td><td>You</td></tr>
<tr><td>I</td><td></td><td>You</td></tr>
</table>
</form>
<p>
<%@ include file="/Include/footer.jspf" %>
</p>
</body>
</html>
以上两个页面都是将表单况在table里面,不想它出表格线,可是为什么第一个能达到目的,不画表格线,而第二个却怎么样调整包括加Border属性都会画出线来呢?
求解!!!!
BODY {
font: 10pt sans-serif;
}
DIV.footer {
background: gray;
color: white;
padding: 5px 5px 5px 10px;
font: bold 16pt sans-serif;
}
TABLE {
border-collapse: collapse;
}
TH {
background: black;
color: white;
margin: 1px;
}
TD {
border: 1px solid silver;
}
.price {
text-align: center;
}
疏忽了,多谢!