gpt4 book ai didi

html - 如何对齐另一个表格内的表格?

转载 作者:太空宇宙 更新时间:2023-11-03 19:35:25 25 4
gpt4 key购买 nike

大家好我有一张 table 在另一张 table 的一排里面我想控制这张 table 的对齐方式,让它居中或靠右怎么做?(我试过对齐属性,但没有用)这是一个示例:

<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>

最佳答案

尝试

<div align="center">

<center>

your table

</center>

关于html - 如何对齐另一个表格内的表格?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4482243/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com