超出区域省略号表示
<table style="table-layout:fixed;white-space: nowrap; width: 100%;">
<thead>
<tr>
<td width="3%" style="text-overflow: ellipsis;overflow: hidden;"nowrap>要显示的文本,超出使用省略号表示</td>
</tr>
</thead>
</table>
超出区域隐藏
<table style="table-layout:fixed;white-space: nowrap; width: 100%;">
<thead>
<tr>
<td width="3%" style="overflow: hidden;"nowrap>要显示的文本,超出隐藏</td>
</tr>
</thead>
</table>
超出区域换行
<table style="table-layout:fixed;white-space: normal;word-break:break-all; width: 100%;">
<thead>
<tr>
<td width="3%" style="overflow: hidden;">要显示的文本,超出换行</td>
</tr>
</thead>
</table>
本文介绍了在固定宽度的显示区域中如何处理长文本的方法,包括使用省略号来表示超出部分、隐藏超出的内容以及让文本自动换行等技术手段。
6224

被折叠的 条评论
为什么被折叠?



