<table cellspacing="0" id="contactTable" style="table-layout:table-layout:fixed;; width:100%; font-weight:normal; position: absolute; top:45; left: 0;">
<td height="50" style="padding-left:5px; overflow:hidden; ">
<span style="text-transform:capitalize;line-height:100%;">
//names here
</span>
</td>
...more code
</table>
Run Code Online (Sandbox Code Playgroud)
这不起作用.溢出仍然使细胞更高,高度增加内容.
RoT*_*oRa 41
最好的解决方案是将div放在具有高度的单元格内:
<td style="padding-left:5px;">
<div style="height: 50px; overflow:hidden;">
...
</div>
</td>
Run Code Online (Sandbox Code Playgroud)
BTW,跨度是多少?如果您只需要它来进行样式设置,则可以直接设置单元格的样式.