代码改变世界

随笔档案-2012年11月

css控制td中的内容不换行

2012-11-06 09:49 by 斌哥tobin, 457 阅读, 收藏,
摘要: <style type="text/css">.dt {table-layout:fixed; width:100px;}.dt td, .dt th{white-space:nowrap;overflow:hidden;}</style><table class="dt"><tr><td>文字1文字2文字3文字4文字5文字6文字7文字文字文字</td></tr></table> 阅读全文
点击右上角即可分享
微信分享提示