Blogger Information
Blog 15
fans 0
comment 0
visits 10886
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
列表UL\OL\DL基本用法及表格Table基本用法
P粉932932019
Original
618 people have browsed it

一、列表基本用法

  1. <ul>
  2. <li class="sub_nav"><a href="#" target="_blank"><img src="#" alt="img_1">Item1</a></li>
  3. <li class="sub_nav"><a href="#" target="_blank"><img src="#" alt="img_2">Item2</a></li>
  4. <li class="sub_nav"><a href="#" target="_blank"><img src="#" alt="img_3">Item3</a></li>
  5. <li class="sub_nav"><a href="#" target="_blank"><img src="#" alt="img_4">Item4</a></li>
  6. <li class="sub_nav"><a href="#" target="_blank"><img src="#" alt="img_5">Item5</a></li>
  7. </ul>

二、表格基本用法

样式如下:

  1. <table border="1" width="500px" style="text-align: center;">
  2. <caption>
  3. 课程表
  4. </caption>
  5. <tbody>
  6. <tr>
  7. <th>时间</th>
  8. <th>序号</th>
  9. <th>课程</th>
  10. <th>老师</th>
  11. </tr>
  12. <tr>
  13. <td rowspan="4">上午</td>
  14. <td>1</td>
  15. <td>语文</td>
  16. <td>张老师</td>
  17. </tr>
  18. <tr>
  19. <!-- <td>text</td> -->
  20. <td>2</td>
  21. <td rowspan="2">数学</td>
  22. <td rowspan="2">马老师</td>
  23. </tr>
  24. <tr>
  25. <!-- <td>text</td> -->
  26. <td>3</td>
  27. <!-- <td>text</td> -->
  28. <!-- <td>text</td> -->
  29. </tr>
  30. <tr>
  31. <!-- <td>text</td> -->
  32. <td>4</td>
  33. <td>英语</td>
  34. <td>刘老师</td>
  35. </tr>
  36. <tr>
  37. <td rowspan="4">下午</td>
  38. <td>5</td>
  39. <td>地理</td>
  40. <td>陈老师</td>
  41. </tr>
  42. <tr>
  43. <!-- <td>text</td> -->
  44. <td>6</td>
  45. <td>生物</td>
  46. <td rowspan="3">孙老师</td>
  47. </tr>
  48. <tr>
  49. <!-- <td>text</td> -->
  50. <td>7</td>
  51. <td>化学</td>
  52. <!-- <td>text</td> -->
  53. </tr>
  54. <tr>
  55. <!-- <td>text</td> -->
  56. <td>8</td>
  57. <td>生物</td>
  58. <!-- <td>text</td> -->
  59. </tr>
  60. <tr>
  61. <td>卫生打扫</td>
  62. <td colspan="3">先进组负责</td>
  63. <!-- <td>text</td> -->
  64. <!-- <td>text</td> -->
  65. </tr>
  66. </tbody>
  67. </table>
Correcting teacher:PHPzPHPz

Correction status:qualified

Teacher's comments:li附上效果图更佳
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