下面的HTML有什么问题吗?
我正在使用Firefox。
<html>
<body>
<table id="interactions" class="tablesorter" style="width:600px; height=1024px">
<thead>
<tr>
<th width="800">Charts</th>
<th width="20">Chi Square p-value</th>
</tr>
<thead/>
<tbody></tbody>
</table>
</body>
</html>
这是HTML的DOM截图。
答案 0 :(得分:2)
<thead/>
是一个自动结束标记,而不是结束标记
由于<thead>
s不能嵌套,因此解析器首先隐式关闭先前的标记。
移动/
。