
<thead> <th rowspan="2">main heading1</th> <th rowspan="2">main heading2</th> <th colspan="3">main heading3 <thead> <tr> <th>sub heading1</th> <th>sub heading2</th> <th>sub heading3</th> <tr> <thead> </th> <th rowspan="2">main heading4</th> </thead>
那可能吗 ?
解决方法 如果您想在表格中使用表格,则需要使用< table>元素再次.你不能只将另一个thead放在thead中.你也失踪了< tr>标签,如果你想在一个表内使用rowspan和colspan错误的表.选项1:您可以在thead中使用2行.
<thead> <tr> <th rowspan="2">main heading1</th> <th rowspan="2">main heading2</th> <th colspan="3">main heading3</th> <th rowspan="2">main heading4</th> </tr> <tr> <th>sub heading1</th> <th>sub heading2</th> <th>sub heading3</th> </tr></thead>
选项2:表格内的表格.
<thead> <tr> <th>main heading1</th> <th>main heading2</th> <th>main heading3 <table> <thead> <tr> <th>sub heading1</th> <th>sub heading2</th> <th>sub heading3</th> <tr> <thead> </table> </th> <th>main heading4</th> </tr></thead>总结
以上是内存溢出为你收集整理的html – 另一个表内的表头全部内容,希望文章能够帮你解决html – 另一个表内的表头所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)