我在格式化我正在创建的表格时遇到了一些困难。我想要我的 <th>
去整个 table 的宽度和两个<tr>
的。即使我有我的第一个 <td>
宽度设置为 200px,它和我的 <th>
一样多.
https://jsfiddle.net/bL47ro78/
我怎样才能得到..
<th class="view_topic_th">
<td>Date</td>
</th>
和我的 table 一样宽,<tr?
的。
最佳答案
以下是可以帮助您格式化表格的解决方案:
<table class="forum_view_topic_table">
<tr calss="view_topic_th">
<th class="view_topic_th_left" align="right">Date</th>
<th class="view_topic_th_right">Count</th>
</tr>
<tr>
<td width='200' valign='top' align='center' style='border: 1px solid #000000;'>User Info Here!</td>
<td valign='top' style='border: 1px solid #000000'>
<div style='min-height: 125px;'>Post 1
<br />by John Smith
<hr />Content</div>
</td>
</tr>
<tr>
<td colspan='2'>
<hr />
</td>
</tr>
<?php } ?>
</table>
关于html - 表格格式问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32063513/