css实现不再让内容把td撑开的常用解决方法

建站知识 2021-07-03 08:43www.168986.cn长沙网站建设

复制代码
代码如下:

<style type="text/css">
table {width:600px;table-layout:fixed;}
td {white-space:nowrap;overflow:hidden;word-break:keep-all;text-overflow:ellipsis}
</style>
<table border=1 >
<tr>
<td width="30%">dd</td>
<td>ddddddddddddddddddddddddddddddfsljdflsajufiajklsjadflkjsalkfdjdsklajdflksajflksajfdlkdsjdflksjfjldskajdflksajflskajf</td>
<td width="30%">dd</td>
</tr>
</table>

Copyright © 2016-2025 www.168986.cn 狼蚁网络 版权所有 Power by