当前位置:网站首页>只显示两行,超出部分省略号显示
只显示两行,超出部分省略号显示
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; /* 超出部分隐藏 */
}
边栏推荐
- Canal installation configuration
- Mysql开启BINLOG
- 0 foundation a literature club low code development member management applet (I)
- Web messaging and woker classification: talking about the cross thread and cross page communication of PostMessage
- Arduino raised $32million to enter the enterprise market
- Unexpected token u in JSON at position 0
- Unexpected token u in JSON at position 0
- [image segmentation] retinal vessel segmentation based on morphology with matlab code
- [WordPress website] 5 Set code highlight
- Canal安装配置
猜你喜欢

在终端pip install xxx但在pycharm却no module named xxx

【云驻共创】华为云HCIA-IoT V2.5培训系列内容之物联网概览

【WordPress建站】5. 设置代码高亮

Outils de débogage JVM - Arthas

华为云数据库进阶学习

Introduction to raspberry pie 4B development board
![[OGeek2019]babyrop](/img/74/5f93dcee9ea5a562a7fba5c17aab76.png)
[OGeek2019]babyrop

【图像融合】基于像素显着性结合小波变换实现多焦点和多光谱图像融合附matlab代码

大厂不是衡量能力的唯一出路,上财学姐毕业三年的经验分享

软件性能测试分析与调优实践之路-JMeter对RPC服务的性能压测分析与调优-手稿节选
随机推荐
关于取模数据序号定位的说明 区码定位是指GBK编码
Huawei cloud database advanced learning
游戏思考14:对cache_server缓冲服务器的问题思考(读云峰博客有感)
[TS] function type
【云驻共创】华为云HCIA-IoT V2.5培训系列内容之物联网概览
前缀和专题训练
get_started_3dsctf_2016
【图像融合】基于像素显着性结合小波变换实现多焦点和多光谱图像融合附matlab代码
[OGeek2019]babyrop
Vmware tools still exist after normal uninstallation for many times. How to solve it
Development of IOT device end - establishment of development environment
Arduino raised $32million to enter the enterprise market
The latest crawler tutorial in 2021: video demonstration of web crawling
内网学习笔记(4)
现货黄金有哪些眩人的小技术?
[image segmentation] retinal vessel segmentation based on morphology with matlab code
【帧率倍频】基于FPGA的视频帧率倍频系统verilog开发实现
华为云图引擎服务
bjdctf_2020_babystack
0 foundation a literature club low code development member management applet (I)