在表格单元中排列内容

  1. <html>
  2.  
  3. <body>
  4.  
  5. <table width="400" border="1">
  6. <tr>
  7. <th align="left">消费项目....</th>
  8. <th align="right">一月</th>
  9. <th align="right">二月</th>
  10. </tr>
  11. <tr>
  12. <td align="left">衣服</td>
  13. <td align="right">$241.10</td>
  14. <td align="right">$50.20</td>
  15. </tr>
  16. <tr>
  17. <td align="left">化妆品</td>
  18. <td align="right">$30.00</td>
  19. <td align="right">$44.45</td>
  20. </tr>
  21. <tr>
  22. <td align="left">食物</td>
  23. <td align="right">$730.40</td>
  24. <td align="right">$650.00</td>
  25. </tr>
  26. <tr>
  27. <th align="left">总计</th>
  28. <th align="right">$1001.50</th>
  29. <th align="right">$744.65</th>
  30. </tr>
  31. </table>
  32.  
  33. </body>
  34. </html>