Blogger Information
Blog 7
fans 0
comment 0
visits 3974
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
学习第二天0629
Lank的博客
Original
500 people have browsed it

php学习第二天0629

回顾一下今天的学习

1.元素
2.标签
3.属性
标签是元素的功能,属性是元素的特征
下面做一个表

  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>html表格</title>
  8. </head>
  9. <body>
  10. <table border="1px" width="60%">
  11. <!-- 表头 -->
  12. <thead>
  13. <caption style="font-size: 23px;">商品信息表</caption>
  14. </thead>
  15. <!-- 表内容 -->
  16. <tbody>
  17. <tr>
  18. <td width="15%">id</td>
  19. <td>品名</td>
  20. <td>价格(元)</td>
  21. <td>数量(个)</td>
  22. <td>金额(元)</td>
  23. <td>手机类别</td>
  24. </tr>
  25. <tr>
  26. <td>1</td>
  27. <td>iphone12</td>
  28. <td>6000</td>
  29. <td>3</td>
  30. <td>18000</td>
  31. <td rowspan="3" style="text-align: center;">苹果</td>
  32. </tr>
  33. <tr>
  34. <td>2</td>
  35. <td>iphone11</td>
  36. <td>4000</td>
  37. <td>3</td>
  38. <td>12000</td>
  39. <!-- <td>金额(元)</td> -->
  40. </tr>
  41. <tr>
  42. <td>3</td>
  43. <td>iphone10</td>
  44. <td>3000</td>
  45. <td>3</td>
  46. <td>9000</td>
  47. <!-- <td>金额(元)</td> -->
  48. </tr>
  49. <tr>
  50. <td>4</td>
  51. <td>华为mate40</td>
  52. <td>6000</td>
  53. <td>3</td>
  54. <td>18000</td>
  55. <td style="text-align: center;">华为</td>
  56. </tr>
  57. <tr>
  58. <td>合计</td>
  59. <td colspan="3" style="text-align: center;">总金额</td>
  60. <!-- <td>6000</td>
  61. <td>3</td> -->
  62. <td>75000</td>
  63. </tr>
  64. </tbody>
  65. <!-- 表底 -->
  66. </table>
  67. </body>
  68. </html>
效果如下:

商品信息表jpg

Correcting teacher:PHPzPHPz

Correction status:unqualified

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