rowSpan和colSpan示例记录
rowSpan和colSpan看起来简单,真要自己写,要调半天,记录一个经典例子,方便快速上手
<table border="1" cellspacing="0"> <tr> <tr> <th rowspan="2">学号</th> <th rowspan="2">姓名</th> <th rowspan="2">年龄</th> <th colspan="3">成绩</th> </tr> <tr> <th>Java</th> <th>SQL</th> <th>HTML</th> </tr> </tr> <tr> <td>100001</td> <td>Tom</td> <td rowspan="3">18</td> <td>90</td> <td>85</td> <td>60</td> </tr> <tr> <td>100002</td> <td>Jerry</td> <td>85</td> <td>98</td> <td>95</td> </tr> <tr> <td>100003</td> <td>Mark</td> <td>80</td> <td>95</td> <td>80</td> </tr> </table>