gpt4 book ai didi

html - 我的表格内容一开始很好,然后在一行中变得一团糟(Node.js、MongoDB)

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

这就是我要说的:

Table

为什么会这样?这是样式问题吗?我尝试为 tr 和 tds 添加一些宽度,它看起来一样。

这是 HTML:

<div style="overflow-x:auto">
<table>
<thead>
<tr>
<th>ID</th>
<th>Nombre</th>
<th>Apellido</th>
<th>Mail</th>
<th>Confirmado</th>
</tr>
</thead>
<% personas.forEach(function(personas){ %>
<tbody>
<tr>
<td><%=personas.id%></td>
<td><%=personas.nombre%></td>
<td><%=personas.apellido%></td>
<td><%=personas.email%></td>
<td><%=personas.confirmado%></td>
</tr>
</tbody>
</table>
</div>

最佳答案

foreach的结尾必须在</tbody>之间和 </table>

关于html - 我的表格内容一开始很好,然后在一行中变得一团糟(Node.js、MongoDB),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52043138/

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