解决Element中table文字过多换行问题

https://blog.csdn.net/lemon_lb0220/article/details/100522548

<template>
  <el-col :span="24" class="colHeight2">
    <el-table :data="tableData" border class="tableLimit">
   
    </el-table>
  </el-col>
</template>
.tableLimit tr td .cell{
   overflow : hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;      /*可以显示的行数,超出部分用...表示 */
  -webkit-box-orient: vertical; 
 
}
原文地址:https://www.cnblogs.com/dianzan/p/14362869.html