您的位置:首页 > 其它

表格不被内容撑开的解决方法

2008-05-06 16:45 281 查看
详细参考:jq926.5d6d.com/thread-11350-1-1.html

(Firefox浏览器)在使用百分比固定td大小情况下使用样式table-layout:fixed与nowrap,并且使用div
<style>
.tbl {table-layout:fixed}
.td {overflow:hidden;}
</style>

<table class=tbl border=1 width=80>
   <tr>
<td width=25% class=td nowrap>
   <div>abcdefghigklmnopqrstuvwxyz 1234567890</div>
</td>
<td class=td nowrap>
   <div>abcdefghigklmnopqrstuvwxyz 1234567890</div>
</td>
   </tr>
</table>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐