当前位置:网站首页>只显示两行,超出部分省略号显示
只显示两行,超出部分省略号显示
2022-06-24 06:43:00 【我不喝奶茶还是胖】
网上有些方法用了不起效果,但这个可以实现


.line {
word-break: break-all;
text-overflow: ellipsis;/* 超出部分省略号 */
display: -webkit-box;/* 将对象作为弹性伸缩盒子模型显示。 */
-webkit-box-orient: vertical;/* 从上到下垂直排列子元素(设置伸缩盒子的子元素排列方式) */
-webkit-line-clamp: 2;/* 显示的行数 */
overflow: hidden; /* 超出部分隐藏 */
}
边栏推荐
- Leetcode概率题面试突击系列11~15
- How to distinguish PAAS, IAAs and SaaS?
- The P2V and V2V software starwind converter is really easy to use
- [Proteus] Arduino uno + ds1307+lcd1602 time display
- JVM debugging tool -arthas
- 20个不容错过的ES6技巧
- [WordPress website] 6 Article content copy prevention
- Huawei cloud database advanced learning
- Vmware tools still exist after normal uninstallation for many times. How to solve it
- Bjdctf 2020 Bar _ Babystack
猜你喜欢

Outils de débogage JVM - Arthas

Arduino raised $32million to enter the enterprise market

现货黄金有哪些值得借鉴的心态

关于取模数据序号定位的说明 区码定位是指GBK编码

Huawei cloud image engine service

get_started_3dsctf_2016
![[Proteus] Arduino uno + ds1307+lcd1602 time display](/img/96/d8c1cacc8a633c679b1a58a1eb8cb9.png)
[Proteus] Arduino uno + ds1307+lcd1602 time display

Unexpected token u in JSON at position 0

FreeRTOS MPU makes the system more robust!

Win11分磁盘怎么分?Win11系统怎么分磁盘?
随机推荐
超宽带脉冲定位方案,UWB精准定位技术,无线室内定位应用
The fund management of London gold is more important than others
【云驻共创】华为云HCIA-IoT V2.5培训系列内容之物联网概览
MFC使用控制台时 项目路径中不能有空格和中文,否则会报错误 LNK1342 未能保存要编辑的二进制文件的备份副本等
PIP install XXX on the terminal but no module named XXX on pycharm
0 foundation a literature club low code development member management applet (III)
Win11分磁盘怎么分?Win11系统怎么分磁盘?
JVM debugging tool -arthas
0 foundation a literature club low code development member management applet (4)
内网学习笔记(4)
bjdctf_2020_babystack
[signal recognition] signal modulation classification based on deep learning CNN with matlab code
1. go deep into tidb: see tidb for the first time
[image feature extraction] image feature extraction based on pulse coupled neural network (PCNN) including Matlab source code
基因检测,如何帮助患者对抗疾病?
MFC多线程 信号量CSemaphore 临界区与互斥 事件
Win11怎么设置让CPU性能全开?Win11CPU怎么设置高性能模式?
【Proteus】Arduino UNO + DS1307+LCD1602时间显示
[image fusion] image fusion based on pseudo Wigner distribution (PWD) with matlab code
What is an intrusion detection system?