不再让内容把td撑开

it2025-02-04  8

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

 

转载于:https://www.cnblogs.com/hailspace/p/3167604.html

相关资源:javascript 使td内容不换行不撑开
最新回复(0)