HTML(四)—表格

 1 <!DOCTYPE html>
 2 <html lang="en">
 3 
 4 <head>
 5     <meta charset="UTF-8">
 6     <meta http-equiv="X-UA-Compatible" content="IE=edge">
 7     <meta name="viewport" content="width=device-width, initial-scale=1.0">
 8     <title>表格</title>
 9 </head>
10 
11 <body>
12     <table border=5px width="200px" height="150px">
13         <tr align=center>
14             <!-- tr表示行,居中 -->
15             <td>w</td>
16             <!-- td表示格 -->
17             <td>j</td>
18             <td rowspan="2">l</td>
19             <!-- rowspan设置合并行 -->
20         </tr>
21         <tr align=center>
22             <td>x</td>
23             <td>y</td </tr>
24 
25             <tr align=center>
26                 <td colspan="2">y</td>
27                 <td>s</td>
28                 <!-- colspan设置列合并 -->
29             </tr>
30 
31     </table>
32 </body>
33 
34 </html>

 

上一篇:1021. Deepest Root (25)(图的遍历,dfs,连通分量的个数)


下一篇:JS第七讲--数组