当前位置:网站首页>表格中el-tooltip 实现换行展示
表格中el-tooltip 实现换行展示
2022-07-01 05:43:00 【�孤 傲ζ】
效果

html代码
<el-table-column
prop="workcontents"
key="workcontents"
label="label"
align="center"
width="100"
>
<template slot-scope="scope">
<el-tooltip placement="top">
<div
style="max-width:480px" //设置最大宽度
v-html="scope.row.workcontents" // 显示的内容
slot="content"
></div>
<span class="overHiddlen">
{
{ scope.row.workcontents }} // 显示省略号
</span></el-tooltip
>
</template>
</el-table-column>css代码
.overHiddlen {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 1; /*可以显示的行数,超出部分用...表示 */
-webkit-box-orient: vertical;
}边栏推荐
- Mongodb学习篇:安装后的入门第一课
- Understand several related problems in JVM - JVM memory layout, class loading mechanism, garbage collection
- Call us special providers of personal cloud services for College Students
- Xuanyi maintenance manual
- Summary of common components of applet
- HCM 初学 ( 一 ) - 简介
- Daily code 300 lines learning notes day 11
- Codeforces Round #803 (Div. 2)vp
- Redis database deployment and common commands
- Build 2022 上开发者最应关注的七大方向主要技术更新
猜你喜欢

从底层结构开始学习FPGA----RAM IP的定制与测试

Set集合詳細講解

Geoffrey Hinton:我的五十年深度学习生涯与研究心法

扩展点系列之SmartInstantiationAwareBeanPostProcessor确定执行哪一个构造方法 - 第432篇

boot+jsp的高校社團管理系統(附源碼下載鏈接)

ssm+mysql二手交易网站(论文+源码获取链接)

π盘,让您电脑变成个人的私有云

mysql 将毫秒数转为时间字符串

论文学习记录随笔 多标签之GLOCAL

In depth understanding of condition source code interpretation and analysis of concurrent programming
随机推荐
TypeORM 框架
Continue to learn MySQL
葫芦儿 APP 使用帮助
Printk debugging summary
Set集合詳細講解
Mongodb學習篇:安裝後的入門第一課
数据治理:数据治理框架(第一篇)
C语言初阶——实现扫雷游戏
Speed regulation and stroke control based on Ti drv8424 driving stepper motor
Oracle 序列+触发器
Is it safe for a novice to open a securities account?
为什么用葫芦儿派盘取代U盘?
Detailed explanation of set
Through cooperation with the University of international trade, we can increase efficiency for college students
Build 2022 上开发者最应关注的七大方向主要技术更新
Know the future of "edge computing" from the Nobel prize!
论文学习记录随笔 多标签之LIFT
Qt编译时,出现 first defined here,原因及解决方法
【问题思考总结】为什么寄存器清零是在用户态进行的?
Unity project experience summary