首页 > 开发 > CSS > 正文

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

2024-07-11 08:36:15
字体:
来源:转载
供稿:网友


<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>

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表