css文字截断
2024-08-26 13:58:30
通过css将文字进行截断,截断部分使用省略号代替
.impleName{
max-width: 100%; /*最大宽度为当前元素的100%*/
display: inline-block;
white-space: nowrap;/*保证文本内容不会自动换行,如果多余的内容会在水平方向撑破单元格*/
overflow: hidden; /*隐藏超出单元格的部分*/
text-overflow: ellipsis; /*将被隐藏的那部分用省略号代替*/
}
最新文章
- APP里如何添加本地文本
- 点击按钮跳出隐藏的div层,并设背景。
- 第五章 springboot + mybatis(转载)
- Scrum会议10.19
- 【转】单例模式(python/c++)
- jQuery获取表单各元素的值
- python模块之hashlib加密
- .net 资源
- python语言学习1——初识python
- Google IP
- the c programing language 学习过程6
- ORA-12514:TNS:lisntener does not currently know of service requested in connect descriptor
- Constructing continuous functions
- Nginx代理MysqlCluster集群
- php数组函数有哪些操作?php数组函数的应用
- 转://Oracle 11gR2 ASM磁盘组管理
- 第9章 应用层(4)_超文本传输协议HTTP
- 如果从码云上git clone项目
- The Suspects POJ 1611
- 并不对劲的bzoj3677:p3647:[APIO2014]连珠线