效果如图
代码:
复制代码代码如下:
<style>
table td{white-space:nowrap;overflow:hidden; text-overflow:ellipsis;}
table {table-layout:fixed;}
</style>
注意!给TD指定宽度(否则宽度自动分配,达不到理想的效果).
table中的超长字符串用省略号表示的css样式
纯CSS3实现鼠标悬停提示气泡效果
下一篇 »