⑴ html表格代碼怎麼寫的
用到拆分合並單元格,手寫挺麻煩的,先用dw在設計視圖片實現,然後再返回代碼視圖,復制即可.代碼如下:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<table width="268" height="200" border="1" cellpadding="0" cellspacing="0">
<tr>
<td height="50" colspan="2" bordercolor="#0000FF"> </td>
<td rowspan="4" bordercolor="#0000FF"><table width="100%" height="200" border="1" cellpadding="0" cellspacing="0">
<tr>
<td height="75" bordercolor="#0000FF"> </td>
</tr>
<tr>
<td height="125" bordercolor="#0000FF"> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="50" colspan="2" bordercolor="#0000FF"> </td>
</tr>
<tr>
<td height="50" bordercolor="#0000FF"> </td>
<td height="50" bordercolor="#0000FF"> </td>
</tr>
<tr>
<td height="50" bordercolor="#0000FF"> </td>
<td height="50" bordercolor="#0000FF"> </td>
</tr>
</table>
解釋如下:
先插入四行兩列的表格,第一列通過合並單元格來實現,第二列將所有單元格合並,然後新插入一個兩行一列的表格即可實現上述效果.
⑵ html做個表格代碼
html做個表格的步驟如下:
1、首先新建一個html,點擊<body></body>中間,先填入表格內容;