当前位置:网站首页>El tooltip in the table realizes line breaking display
El tooltip in the table realizes line breaking display
2022-07-01 05:48:00 【Lonely and arrogant ζ】
effect

html Code
<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" // Set the maximum width
v-html="scope.row.workcontents" // Display content
slot="content"
></div>
<span class="overHiddlen">
{
{ scope.row.workcontents }} // Show ellipsis
</span></el-tooltip
>
</template>
</el-table-column>css Code
.overHiddlen {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 1; /* Number of lines that can be displayed , Use... For the excess part ... Express */
-webkit-box-orient: vertical;
}边栏推荐
- What is the at instruction set often used in the development of IOT devices?
- 【考研高数 自用】高数第一章基础阶段思维导图
- Qt编写自定义控件-自绘电池
- vsCode函数注解/文件头部注解快捷键
- Brief description of activation function
- HCM 初学 ( 四 ) - 时间
- OpenGL ES: (2) OpenGL ES 与 EGL、GLSL的关系
- 导数的左右极限和左右导数的辨析
- What things you didn't understand when you were a child and didn't understand until you grew up?
- QT write custom control - self drawn battery
猜你喜欢

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

【QT】qt加减乘除之后,保留小数点后两位

Brief description of activation function

MySQL数据迁移遇到的一些错误

葫芦儿 APP 使用帮助

Build 2022 上开发者最应关注的七大方向主要技术更新

scope 数据导出mat

Educational administration management system (free source code)

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

LeetCode 最大矩形,最大正方形系列 84. 85. 221. 1277. 1725. (单调栈,动态规划)
随机推荐
Educational administration management system (free source code)
Common solutions for mobile terminals
excel初级应用案例——杜邦分析仪
激活函数简述
2022第八届中国国际“互联网+”大学生创新创业大赛产业命题赛道开启报名!
Advanced drawing skills of Excel lecture 100 (1) - use Gantt chart to show the progress of the project
Looking for high school student developers with similar interests
输入一个表达式(用字符串表示),求这个表达式的值。
First defined here occurs during QT compilation. Causes and Solutions
[QT] QT after addition, subtraction, multiplication and division, two decimal places are reserved
Brief description of activation function
导数的左右极限和左右导数的辨析
Codeforces Round #803 (Div. 2)vp
4GB大文件,如何实时远程传输和共享?
千万不要把笔记视频乱放!
HCM 初学 ( 一 ) - 简介
Seven major technical updates that developers should pay most attention to on build 2022
HDU - 1069 Monkey and Banana(DP+LIS)
restframework-simpleJWT重写认证机制
Debug details under pycharm