Blogger Information
Blog 14
fans 0
comment 0
visits 23870
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
制作商品表格
逍遥php
Original
395 people have browsed it

制作商品表格

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  7. <title>表格</title>
  8. </head>
  9. <body style="text-align: center;">
  10. <h3>商品表格</h3>
  11. <table border="1" align="center" >
  12. <!-- 标题 -->
  13. <caption></caption>
  14. <!-- 表头 -->
  15. <thead>
  16. <tr>
  17. <th>分类</th>
  18. <th>ID</th>
  19. <th>品名</th>
  20. <th>单价</th>
  21. <th>数量</th>
  22. <th>金额</th>
  23. </tr>
  24. </thead>
  25. <!-- 表体(必选)浏览器自动生成,一个表格中可以有多个tbody -->
  26. <tbody>
  27. <!-- 先写tr,创建一个新行(单元格的容器) -->
  28. <tr>
  29. <!-- td:单元格,数据存放的地方 -->
  30. <td rowspan="2">数码</td>
  31. <td>5018</td>
  32. <td>电脑</td>
  33. <td>9000</td>
  34. <td>2</td>
  35. <td>18000</td>
  36. </tr>
  37. <tr>
  38. <td>2222</td>
  39. <td>手机</td>
  40. <td>3000</td>
  41. <td>100</td>
  42. <td>6000</td>
  43. </tr>
  44. <tr>
  45. <td rowspan="2">服装</td>
  46. <td>1111</td>
  47. <td>时尚</td>
  48. <td colspan="2">2</td>
  49. <td>3</td>
  50. </tr>
  51. <tr>
  52. <td>1112</td>
  53. <td>牛仔</td>
  54. <td>10</td>
  55. <td>1</td>
  56. <td>100</td>
  57. </tr>
  58. <!-- 表尾 -->
  59. <tfoot>
  60. <tr>
  61. <th colspan="5">总金额</th>
  62. <th>24103</th>
  63. </tr>
  64. </tfoot>
  65. </tbody>
  66. </table>
  67. <button>结算</button>
  68. </body>
  69. </html>

Correcting teacher:PHPzPHPz

Correction status:qualified

Teacher's comments:
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post