gpt4 book ai didi

html - 表格中的样式 在 IE 中不起作用

转载 作者:太空宇宙 更新时间:2023-11-04 15:36:01 25 4
gpt4 key购买 nike

我有一张看起来像这样的 table

<table>
<tr>
<th>Heading</th>
<td>body</td>
</tr>
<tr>
<th>Heading</th>
<td>body</td>
</tr>
</table>

而不是让标题默认 float 。我想让 坐在上面。

这是我的代码示例 - http://jsfiddle.net/PJQT8/1/

最佳答案

将标题单元格放在自己的行中,将数据单元格放在自己的行中。如果您不希望标题单元格占据左列,则不应将它们放在那里。

<table>
<tr>
<th>Heading</th>
<th>Heading</th>
</tr>
<tr>
<td>body</td>
<td>body</td>
</tr>
</table>

关于html - 表格中的样式 <th> 在 IE 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12797085/

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