用HTML做一个表格(table标签)

作者:朋克周 | 创建时间: 2023-06-15
用HTML做一个表格(table标签)

操作方法

<body> <table> <p style="text-align:center ">功课表</p> <tr> <th>语文</th> <td>7:00-7:40</td> <td>7:50-8:30</td> </tr> <tr> <th>数学</th> <td>7:00-7:40</td> <td>7:50-8:30</td> </tr> <tr> <th>英文</th> <td>7:00-7:40</td> <td>7:50-8:30</td> </tr> </table>

<head> <title>做一个课程表</title> <style type="text/css"> body { width:340px; height :800px; } table { border-collapse :collapse ; } th,td { width:100px; height:40px; border :1px solid black; font-size:12px; text-align :center; } </style> </head>

table { border-collapse :collapse ; }

温馨提示

首先要安装visual studio 软件工具,或者其他相关的软件。
设置一个断点,看看代码的作用。
可以将功课表再完善一下。
点击展开全文

更多推荐