1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <title>table</title>
6 <style type="text/css"> 7 table{ 8 9 border:#000 solid 2px; 10 font-size:14px 11 font-family:"迷你简黑体" 12 } 13 table tr td{border:#F00 solid 1px;} 14 </style>
15 </head>
16 <body> 17 <table width="400" border="0" cellpadding="0" cellspacing="0"> 18 <tr> 19 <th align="center">消费项目</th> 20 <th align="right">周一</th> 21 <th align="right">周二</th> 22 </tr> 23 <tr> 24 <td align="center">衣服</td> 25 <td align="right">241</td> 26 <td align="right">150</td> 27 </tr> 28 <tr> 29 <td align="center">化妆品</td> 30 <td align="right">30</td> 31 <td align="right">14</td> 32 </tr> 33 </table> 34 </body>
35 </html>