本文介绍了两个相同的html表显示不同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这些表格为什么显示不同?
why do these tables display differently?
<table>
<tbody>
<tr>
<td style="width:20%;"><b><u>Date</u></b></td>
<td style="width:20%;"><b><u>Invested</u></b></td>
<td style="width:30%;"><b><u>Company (and Round)</u></b></td>
<td style="width:30%;"><b><u>SPV</u></b></td>
</tr>
</tbody>
</table>
<br><br><br>
<table>
<tbody>
<tr>
<td style="width:20%;"><b><u>Date</u></b></td>
<td style="width:20%;"><b><u>Invested</u></b></td>
<td style="width:30%;"><b><u>Company (and Round)</u></b></td>
<td style="width:30%;"><b><u>SPV</u></b></td>
</tr>
</tbody>
</table>
推荐答案
正如我在上面的评论中推测的那样,< tdstyle =="width:20%;">
是不间断的空格( U + 00A0:NO-BREAK SPACE [NBSP]
),可以将其显示为< tdstyle ="width:20%;">
.只需删除 td
和 style
之间的空格,并输入适当的空格就可以了.通过 https://www.babelstone.co.uk/Unicode/whatisit.html
As I surmised in my comment above, the space in <td style="width:20%;">
is a non-breaking space (U+00A0 : NO-BREAK SPACE [NBSP]
) which can render as <tdstyle="width:20%;">
. Just delete the sapce between td
and style
and enter a proper space and you're fine. Character identified via https://www.babelstone.co.uk/Unicode/whatisit.html
这篇关于两个相同的html表显示不同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!