代码如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="keywords" content="表格,文字滚动,表格标题" />
<title>20131121表格</title>
</head>
<body>
<table width="300" height="150" align="center" cellspacing="1" bgcolor="#FF0000">
<tr>
<th colspan="4" bgcolor="#FFFFFF">第一题</th>
</tr>
<tr>
<td bgcolor="#FFFFFF">a1</td>
<td bgcolor="#FFFFFF">a2 </td>
<td bgcolor="#FFFFFF">a3 </td>
<td bgcolor="#FFFFFF"><marquee>a4文字滚动 </marquee></td>
</tr>
<tr>
<td bgcolor="#FFFFFF">b1 </td>
<td bgcolor="#FFFFFF">b2 </td>
<td bgcolor="#FFFFFF">b3 </td>
<td bgcolor="#FFFFFF">b4 </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">c1 </td>
<td bgcolor="#FFFFFF">c2 </td>
<td bgcolor="#FFFFFF">c3 </td>
<td bgcolor="#FFFFFF">c4 </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">d1 </td>
<td bgcolor="#FFFFFF">d2 </td>
<td bgcolor="#FFFFFF">d3 </td>
<td bgcolor="#FFFFFF">d4 </td>
</tr>
</table>
<br />
<table width="300" height="100" border="1" bordercolor="#0000FF" align="center">
<tr>
<th colspan="2" align="center" height="20" width="300">第二题:表头标题</th>
</tr>
<tr height="30" align="center">
<td width="150">1</td>
<td width="150">2</td>
</tr>
</table>
<br />
<table width="900" height="500" cellspacing="1" bgcolor="#990099" align="center">
<tr >
<th bgcolor="#ffffff" colspan="5" align="center" height="30" width="100%">个人简历(第三题)</th>
</tr>
<tr bgcolor="#ffffff">
<td colspan="5" align="center" height="20" width="100%"></td>
</tr>
<tr height="20" align="center">
<td bgcolor="#ffffff" width="135">姓名</td>
<td bgcolor="#ffffff" width="210"></td>
<td bgcolor="#ffffff" width="135">性别</td>
<td bgcolor="#ffffff" width="210"></td>
<td bgcolor="#ffffff" width="210" rowspan="5">照片</td>
</tr>
<tr height="20" align="center">
<td bgcolor="#ffffff" width="135">出生年月</td>
<td bgcolor="#ffffff" width="210"></td>
<td bgcolor="#ffffff" width="135">民族</td>
<td bgcolor="#ffffff" width="210"></td>
</tr>
<tr height="20" align="center">
<td bgcolor="#ffffff" width="135">学历</td>
<td bgcolor="#ffffff" width="210"></td>
<td bgcolor="#ffffff" width="135">专业</td>
<td bgcolor="#ffffff" width="210"></td>
</tr>
<tr height="20" align="center">
<td bgcolor="#ffffff" width="135">工作经验</td>
<td bgcolor="#ffffff" width="210"></td>
<td bgcolor="#ffffff" width="135">联系电话</td>
<td bgcolor="#ffffff" width="210"></td>
</tr>
<tr height="20" align="center">
<td bgcolor="#ffffff" width="135">毕业学校</td>
<td bgcolor="#ffffff" colspan="3"></td>
</tr>
<tr height="20" align="center">
<td bgcolor="#ffffff" width="135">住址</td>
<td bgcolor="#ffffff" colspan="4"></td>
</tr>
<tr height="20" align="center">
<td bgcolor="#ffffff" width="135">电子信箱</td>
<td bgcolor="#ffffff" colspan="4"></td>
</tr>
</table>
</body>
</html>
结果如下: