Blogger Information
Blog 19
fans 0
comment 0
visits 10250
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
列表的使用和图片链接以及表格的创建合并使用方法
搬砖来学php
Original
468 people have browsed it

1.列表的使用和图片链接

  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>Document</title>
  8. </head>
  9. <body>
  10. 列表的使用1.无序列表使用的是ul:
  11. <ul>
  12. <li><a href="https://www.php.cn/"><img
  13. src="https://img.php.cn/upload/aroundimg/000/000/068/62398180bdae8398.jpg" alt="PHPAPP下载"
  14. width='300'></a></li>
  15. <li><a href="https://www.php.cn/k.html"><img src="https://www.php.cn/static/k20/images/baoming@2x.png"
  16. width="300" alt="php培训班"></a></li>
  17. <li><a href="https://www.php.cn/course.html"><img
  18. src="https://img.php.cn/upload/course/000/000/001/6296df1d179f3127.png" width="300" alt="培训视频"></a>
  19. </li>
  20. </ul>
  21. 2.有序列表的使用是ol:
  22. <ol>
  23. <li><a href="https://www.woyaogexing.com/"><img
  24. src="https://img2.woyaogexing.com/2022/07/05/46a98256c8ac935e!400x400.jpg" width="80" alt="头像"></a>
  25. </li>
  26. <li><a href="https://www.woyaogexing.com/"><img
  27. src="https://img2.woyaogexing.com/2022/07/05/f39dad5b4d98a792!400x400.jpg" width="80" alt="头像"></a>
  28. </li>
  29. <li><a href="https://www.woyaogexing.com/"><img
  30. src="https://img2.woyaogexing.com/2022/07/05/ea7de049521e39d9!400x400.jpg" width="80" alt="头像"></a>
  31. </li>
  32. </ol>
  33. </body>
  34. </html>
  35. 效果如下

" class="reference-link">

2.表格的单元格使用以及水平合并和垂直合并方法代码如下

  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>Document</title>
  8. </head>
  9. <body>
  10. 课程表代码
  11. <table width="500" border="1">
  12. <caption>课程表</caption>
  13. <thead>
  14. <tr>
  15. <th>时间</th>
  16. <th>周一</th>
  17. <th>周二</th>
  18. <th>周三</th>
  19. <th>周四</th>
  20. <th>周五</th>
  21. </tr>
  22. <tbody>
  23. <tr>
  24. <!-- rowspan:一般使用在垂直平合并 -->
  25. <td rowspan="3"> <center>上午</center></td>
  26. <td>科学</td>
  27. <td>语文</td>
  28. <td>语文</td>
  29. <td>数学</td>
  30. <td>美术</td>
  31. </tr>
  32. <tr>
  33. <td>英语</td>
  34. <td>语文</td>
  35. <td>数学</td>
  36. <td>化学</td>
  37. <td>美术</td>
  38. </tr>
  39. <tr>
  40. <td>英语</td>
  41. <td>数学</td>
  42. <td>语文</td>
  43. <td>体育</td>
  44. <td>化学</td>
  45. </tr>
  46. <tr>
  47. <!-- colspan;一般使用在水平合并 -->
  48. <td colspan="6">
  49. <center>中午休息</center>
  50. </td>
  51. </tr>
  52. <tr>
  53. <td rowspan="3"><center>下午</center></td>
  54. <td>英语</td>
  55. <td>数学</td>
  56. <td>语文</td>
  57. <td>体育</td>
  58. <td>化学</td>
  59. </tr>
  60. <tr>
  61. <td>体育</td>
  62. <td>化学</td>
  63. <td>英语</td>
  64. <td>数学</td>
  65. <td>化学</td>
  66. </tr>
  67. <tr>
  68. <td>英语</td>
  69. <td>数学</td>
  70. <td>语文</td>
  71. <td>体育</td>
  72. <td>化学</td>
  73. </tr>
  74. </tbody>
  75. </thead>
  76. </table>
  77. </body>
  78. </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