table中的超长字符串用省略号表示的css样式
摘要:效果如图代码:tabletd{white-space:nowrap;overflow:hidden;text-overflow:ellips...
效果如图
代码:
<style>
table td{white-space:nowrap;overflow:hidden; text-overflow:ellipsis;}
table {table-layout:fixed;}
</style>
注意!给TD指定宽度(否则宽度自动分配,达不到理想的效果).
【table中的超长字符串用省略号表示的css样式】相关文章:
★ Discuz!X“#145 - Table '.pre1_common_stat' is marked as crashed a
★ CSS编写小技巧