您的位置:首页 > Web前端 > BootStrap

bootstrap表格内容过长时用省略号表示

2016-12-20 17:45 363 查看

bootstrap ellipsis的使用

        当表格的内容过多的时候,需要把过长的内容用省略号代替;只要table加上style样式,td的style加上样式。
<TABLE  style="table-layout:fixed" class="table table-condensed table-bordered table-hover table-striped">
<td style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;">2223333333333333333333333</td>


最终效果如下图所示:

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  bootstrap