手机
当前位置:查字典教程网 >网页设计 > Div+Css教程 >css实现不再让内容把td撑开的常用解决方法
css实现不再让内容把td撑开的常用解决方法
摘要:table{width:600px;table-layout:fixed;}td{white-space:nowrap;overflow:h...

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

【css实现不再让内容把td撑开的常用解决方法】相关文章:

CSS实现同一行的图片和文字垂直居中对齐的方法

用CSS实现垂直居中的3种方法

css实现文字过长显示省略号的方法

css中换行的几种常用方式整理

用css实现隐藏文本框

css实现鼠标悬停时滑出层提示的方法

浏览器不支持position: fix的解决

css实现图片在div中居中的效果

左中右3栏最先显示中栏内容的方法

CSS里display的使用方法

精品推荐
分类导航