1.直接上代码

<el-table :data="data" border stripe style="width: 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>

 

相关文章:

  • 2022-12-23
  • 2021-11-29
  • 2022-01-20
  • 2022-02-07
  • 2022-12-23
  • 2021-07-07
  • 2021-12-04
  • 2021-11-18
猜你喜欢
  • 2021-05-24
  • 2021-05-10
  • 2021-08-07
  • 2021-12-06
  • 2022-01-21
  • 2022-01-16
  • 2022-12-23
相关资源
相似解决方案