表结构如下
<table>
<table>
<thead>
<tr>...header template...</tr>
</thead>
</table>
<tbody>
<tr> ... </tr>
<tr> ... </tr>
<tr> ... </tr>
</tbody>
<table>
我的问题是数据行和标题行没有相互对齐。 表格结构看起来很奇怪。
任何线索我怎样才能使它们对齐。
编辑:
我已经使用 Jqgrid 来填充我的网格。 jqgrid 生成的表结构如上。 如果我不包裹在标签内,那么第一个里面就会消失。 在某个地方,我发现如果我们不在表中换行,jquery.clean 将进行清理。
你们有什么想法吗
最佳答案
你的语法错误太多了。 这是普通表:
<table border=1>
<thead>
<tr><th>header template</th></tr>
</thead>
<tbody>
<tr><td>...</td></tr>
<tr><td>...</td></tr>
</tbody>
</table>
关于html - 表体设计不匹配,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24948321/