【发布时间】:2014-04-26 03:51:08
【问题描述】:
这个特殊的 html 代码是创建一个有两行两列的表格,并将第一列背景装饰为红色,并将第二列文本右对齐。遇到的非常有趣的事情是对齐没有发生,为什么?
<table>
<colgroup>
<col style="background-color:red">
<col style="text-align:right">
</colgroup>
<tr>
<th>ISBN</th>
<th>Title</th>
</tr>
<tr>
<td>3476896</td>
<td>My first HTML</td>
</tr>
</table>
【问题讨论】: