<table>
<tbody>
<tr>
<td>
<table> <!-- i want to control the alignment of this table -->
<tbody><tr>
<td>TD1</td>
<td></td>
</tr>
<tr>
<td>TD2</td>
<td></td>
</tr>
</tbody>
</table>
</td>
</tr>
答案 0 :(得分:0)
试
<div align="center">
或
<center>
your table
</center>
答案 1 :(得分:-1)
我会想像
<table>
<tbody>
<tr>
<td style="text-align:right">
<table> <!-- i want to control the alignment of this table -->
<tbody><tr>
<td>TD1</td>
<td></td>
</tr>
<tr>
<td>TD2</td>
<td></td>
</tr>
</tbody>
</table>
</td>
</tr>
此外,请确保嵌套表所进入的单元格的宽度具有一些可用空间,以便嵌套表可以移动。即设置td的宽度和嵌套表。