当前位置:网站首页>Only two lines are displayed, and the excess part is displayed with Ellipsis
Only two lines are displayed, and the excess part is displayed with Ellipsis
2022-06-24 07:28:00 【I don't drink milk tea or I'm fat】
Some methods on the Internet have great effects , But this can be done
.line {
word-break: break-all;
text-overflow: ellipsis;/* Excess ellipsis */
display: -webkit-box;/* Display the object as an elastic expansion box model . */
-webkit-box-orient: vertical;/* Arrange children vertically from top to bottom ( Set the sub element arrangement of the expansion box ) */
-webkit-line-clamp: 2;/* Number of lines displayed */
overflow: hidden; /* To hide beyond */
}
边栏推荐
- 【WordPress建站】6. 文章内容防复制
- Description of module data serial number positioning area code positioning refers to GBK code
- 20个不容错过的ES6技巧
- Bjdctf 2020 Bar _ Babystack
- 两个链表的第一个公共节点_链表中环的入口(剑指offer)
- An example of MySQL accidental deletion recovery - using Myflash
- 与(&&)逻辑或(||),动态绑定结合三目运算
- [security] how to [host security - hybrid cloud version] support secure access to non Tencent virtual machines
- Mysql---三张表(student,课程,分数) 查询课程为数学的学生姓名,编号,成绩
- Tutorial on simple use of Modbus to BACnet gateway
猜你喜欢
【WordPress建站】5. 设置代码高亮
Win11 points how to divide disks? How to divide disks in win11 system?
[image fusion] image fusion based on directional discrete cosine transform and principal component analysis with matlab code
Win11笔记本省电模式怎么开启?Win11电脑节电模式打开方法
内网学习笔记(4)
How can genetic testing help patients fight disease?
Huawei cloud image engine service
华为云数据库进阶学习
Leetcode probability interview shock series 11~15
Huawei Cloud Database Advanced Learning
随机推荐
JVM debugging tool -jmap
How to select a third-party software testing company? 2022 ranking of domestic software testing institutions
Dichotomous special training
在js中正则表达式验证小时分钟,将输入的字符串转换为对应的小时和分钟
PCL 计算多边形的面积
Development of IOT device end - establishment of development environment
【小技巧】使用matlab的深度学习工具箱deepNetworkDesigner快速设计
Graduation season advance technology
使用SystemParametersInfo访问用户界面设置
High energy ahead: Figure 18 shows you how to use the waterfall chart to visually reflect data changes
2、 What is the principle of layer 3 and 4 switching technology? Recommended collection!
Summary of 2022 blue team HW elementary interview questions
蓝牙耳机怎么连接电脑使用,win10电脑如何连接蓝牙耳机
Win11分磁盘怎么分?Win11系统怎么分磁盘?
What is an intrusion detection system?
Vmware tools still exist after normal uninstallation for many times. How to solve it
buuctf misc [UTCTF2020]docx
超宽带脉冲定位方案,UWB精准定位技术,无线室内定位应用
Audio knowledge (V) -- data processing
Introduction to game design and development - layered quaternion - dynamic layer