解决Element中table文字过多换行问题-亲测有效

1.直接上代码

<el-table :data="data" border stripe style=" 100%;"  class="tableLimit"  :height="height">
      <el-table-column label="排序" type="index" align="center"/>
</el-table>


<style>

.tableLimit tr td .cell{
  overflow : hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;      /*可以显示的行数,超出部分用...表示 */
  -webkit-box-orient: vertical;

}


</style>
原文地址:https://www.cnblogs.com/ysyy/p/14837233.html