日期:2014-05-17 浏览次数:20631 次
<table> <tr> <th>Cats</th> <th>Dogs</th> <th>Lemurs</th> </tr> <tr> <td>Tiger</td> <td>Grey Wolf</td> <td>Indri</td> </tr> <tr> <td>Cheetah</td> <td>Cape hunting dog</td> <td>Sifaka</td> </tr> </table> <table> <tr> <th>Cats</th> <td>Tiger</td> <td>Cheetah</td> </tr> <tr> <th>Dogs</th> <td>Grey Wolf</td> <td>Cape hunting dog</td> </tr> <tr> <th>Lemurs</th> <td>Indri</td> <td>Sifaka</td> </tr> </table>
<table> <tr> <th colspan="2">Carnivores</th> <th>Primates</th> </tr> <tr> <td>Tiger</td> <td>Grey Wolf</td> <td>Indri</td> </tr> </table>
<table> <tr> <th rowspan="2">Carnivores</th> <td>Tiger</td> <td>Cheetah</td> <td>Caracal</td> <td>Wildcat</td> </tr> <tr> <td>Grey Wolf</td> <td>Cape hunting dog</td> <td>Red fox</td> <td>Fennec</td> </tr> </table>
<table> <caption>Animal Group</caption> <!-- etc --> </table>
<table> <caption>Caption</caption> <!-- 给前两列加上 alternative --> <colgroup span="2" class="alternative"></colgroup> <!-- 给第二列和第四列,加上 alternative --> <colgroup> <col /> <col class="alternative" /> <col /> <col class="alternative" /> </colgroup> <tr> <td>This</td> <td>That</td> <td>The other</td> <td>Lunch</td> <td>Lunch</td> </tr>
<style type="text/css"> table{border: 1px red solid; border-collapse:collapse;} td{border:10px black solid} </style> <body> <table>