贴代码:

<table>
  <thead>
    <tr>
      <td>测试1</td>
      <td>数量</td>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td class="elli">超出显示超出显示超出显示超出显示超出显示超出显示超出显示超出显示超出显示超出显示超出显示</td>
      <td>1</td>
    </tr>
  </tbody>
</table>

<style>
.elli{
  overflow:hidden;
  text-overflow:ellipsis;
  display:-webkit-box;
  -webkit-line-clamp:1;
  -webkit-box-orient:vertical
}
td{
  line-height:28px;
  border-bottom:1px solid #ececec;
  
}
</style>

  

相关文章:

  • 2022-12-23
  • 2021-06-02
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
  • 2021-11-21
  • 2021-12-30
  • 2022-12-23
猜你喜欢
  • 2021-08-13
  • 2022-12-23
  • 2021-06-29
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案