日期:2014-05-16  浏览次数:21407 次

表格的单元格怎么合并
怎么合并下图的1,2,3区域啊?其他的表格框架不变,我在设计里试了好几次,logo的区域总变。以下是代码和图<table width="70%" align="center" border="2">
<tr>
<td width="9%" rowspan="3" >logo</td>
<td width="14%">zhuti</td>
<td width="62%">subject</td>
<td width="15%">createtime</td> 
</tr>
<td colspan="2" rowspan="4">1</td>
<tr>
<td width="15%" height="43">2</td>
</tr>
<tr>
<td width="9%">name</td>
<td rowspan="2">3</td>
</tr>
<tr>
<td width="9%" height="19">lesson</td>
</tr>

------解决方案--------------------

<table width="70%" align="center" border="2">
  <tr>
<td width="9%" rowspan="3" >logo</td>
<td width="14%">zhuti</td>
<td width="62%">subject</td>
<td width="15%">createtime</td> 
  </tr>
<td colspan="3" rowspan="4">1</td>
  <tr>

  </tr>
  <tr>
<td width="9%">name</td>

  </tr>
  <tr>
<td width="9%" height="19">lesson</td>
  </tr>
</table>

------解决方案--------------------
<table width="70%" align="center" border="2">
<tr>
<td width="9%" rowspan="3" >logo</td>
<td width="14%">zhuti</td>
<td width="62%">subject</td>
<td width="15%">createtime</td> 
</tr>
<td colspan="2" rowspan="4">1</td>
<tr>
<td width="15%" height="43" rowspan=3>2</td>
</tr>
<tr>
<td width="9%">name</td>
</tr>
<tr>
<td width="9%" height="19">lesson</td>
</tr>
</table>

------解决方案--------------------
<table border=1 width=1000 height=50>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td colspan=3 rowspan=2></td>
</tr>
<tr>
<td></td>
</tr>
</table>

------解决方案--------------------
话说你直接把要合并的选中  用鼠标拖   然后右键合并 不可以?