
<%@ page contentType="text/html;charset=ISO-8859-1" language="java" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
table{
font-size:10pt;
border:1px solid #808080;
}
th{
border-bottom:1px solid #808080;
border-right:1px solid #808080;
}
</style>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<table id="table1" width="100%" cellspacing="0" cellpadding="0">
<tr align="center" bgcolor="#3E3695" style="color:#FFFFFF;height:25px;">
<th rowspan="3">1-1</th>
<th rowspan="3">1-2</th>
<th rowspan="2">1-3</th>
<th rowspan="1">1-4</th>
<th rowspan="3">1-5</th>
</tr>
<tr align="center" bgcolor="#3E3695" style="color:#FFFFFF;height:30px;">
<th>2-4</th>
</tr>
<tr align="center" bgcolor="#3E3695" style="color:#FFFFFF;height:30px;">
<th>2-3</th>
<th>3-4</th>
</tr>
</table>
</form>
</body>
</html>
2、拆分列
<%@ page contentType="text/html;charset=ISO-8859-1" language="java" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
table{
font-size:10pt;
border:1px solid #808080;
}
th{
border-bottom:1px solid #808080;
border-right:1px solid #808080;
}
</style>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<table id="table1" width="100%" cellspacing="0" cellpadding="0">
<tr align="center" bgcolor="#3E3695" style="color:#FFFFFF;height:25px;">
<th rowspan="3">1-1</th>
<th rowspan="3">1-2</th>
<th rowspan="3">1-3</th>
<th colspan="3">1-4</th>
<th rowspan="3">1-5</th>
</tr>
<tr align="center" bgcolor="#3E3695" style="color:#FFFFFF;height:30px;">
<th colspan="2" width="20%">1-4-1</th>
<th width="20%">1-4-2</th>
</tr>
<tr align="center" bgcolor="#3E3695" style="color:#FFFFFF;height:30px;">
<th>1-4-1-1</th>
<th>1-4-1-2</th>
<th>1-4-2-1</th>
</tr>
</table>
</form>
</body>
</html>