jsp页⾯table表格上下左右居中
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
div中的div居中<title>修改密码</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<style type="text/css">
#table2{
width:300px;
height:200px
}
</style>
</head>
<body>
<table width="700" height="100%" align="center">
<tr>
<td>
<div align="center">
<table id="table2" border="1" cellpadding="5" cellspacing="0">
<tr>
<td>新密码</td>
<td>sss</td>
</tr>
<tr>
<td>请再输⼀次</td>
<td>ssss</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</body>
</html>

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。