通过css解决html中英文字符溢出
来源:互联网 发布:知乎电力系统仿真书籍 编辑:程序博客网 时间:2024/05/20 05:57
加上li a {display: block;width: 168px;overflow: hidden;/*不能写在最后*/white-space: nowrap;-o-text-overflow: ellipsis;text-overflow: ellipsis;}
测试代码如下
<html><head><title>blog</title><meta http-equiv=content-type content="text/html; charset=gb2312"><style><style type="text/css">li{width:95%;margin:0 auto; height:22px;line-height:22px; }li a {display: block;width: 168px;overflow: hidden;/*不能写在最后*/white-space: nowrap;-o-text-overflow: ellipsis;text-overflow: ellipsis;}</style><div style="width:300px; padding:5px;"><ul><li><a href="#"><span>fasfdsafdsafdafdsafdsafdsafdsa</span></a></li><li><a href="#">发大水发大水范德萨范德萨范德萨范德萨</a></li></ul></div></body></html>
- 通过css解决html中英文字符溢出
- CSS解决内容溢出
- CSS---解决文本溢出,换行
- HTML CSS 特殊字符
- Html input 限制输入中英文字符,及字符数量统计
- HTML长串英文字符溢出问题
- HTML CSS 特殊字符表
- HTML CSS 特殊字符表
- HTML CSS 特殊字符表
- HTML CSS特殊字符总结
- HTML CSS 特殊字符表
- HTML CSS 特殊字符表
- HTML CSS 特殊字符表
- css解决td单元格内文字溢出
- css+div如何解决文字溢出
- css+div如何解决文字溢出
- css+div如何解决内容的溢出
- 【CSS】解决ie6中英文混排对不齐的问题
- Linux下tomcat JVM内存设置
- andriod 出现解析包出现错误
- [input] Linux 输入子系统(二)
- iphone知识汇总
- python支持的套接字选项
- 通过css解决html中英文字符溢出
- android 出现java.lang.SecurityException:requires READ_PHONE_STATE
- 60 数据是核心
- Liferay6.0.5中WebContent编辑的一个bug
- Linux Shell编程入门
- ubuntu server 10.04 网卡丢失或不能联网
- mobile项目 GenerateResource任务意外失败 或 设计界面打不开
- ORA-24300 When Configuring GC Agent to monitor 11g ASM [ID 977472.1]
- 智能指针