gpt4 book ai didi

HTML 表格宽度显示不正确

转载 作者:太空宇宙 更新时间:2023-11-04 00:02:40 26 4
gpt4 key购买 nike

我的 HTML 表格设置有问题。我有三个标题标题,出于某种原因,它们没有占据完整的 100% 宽度。但是,主体确实占据了 100% 的宽度。我不太确定发生了什么。我还有另一张工作正常的 table 。我附上了一张图片和表格的html代码。即使我删除指定的宽度百分比,显示仍将与下图相同。任何帮助将非常感激!提前致谢!

<table id="timePreferenceTable" class="table-striped" cellpadding="0" cellspacing="0" border="0">
<thead>
<tr>
<th width="34%">Start Time</th>
<th width="34%">End Time</th>
<th width="32%">Days</th>
</tr>
</thead>
<tbody></tbody>
</table>

HTML-TABLE-TH-BUG

最佳答案

尝试在您的 table 上设置 width="100%"。我不确定你的类(class)是做什么的。如果未将宽度设置为 100%,则执行此操作。

<table width="100%" id="timePreferenceTable" class="table-striped" cellpadding="0" cellspacing="0" border="0">

关于HTML 表格宽度显示不正确,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15999762/

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