ss超出一定宽度用省略号...代替,如何实现呢?如下代码:
.content.navleft.histiry>ul{
width:200px;
}
.content.navleft.histiry>ulli{
margin-left:10px;
height:20px;
line-height:20px;
color:#999;
font-size:12px;
cursor:pointer;/*鼠标放上变小手*/
word-break:keep-all;/*不换行*/
white-space:nowrap;/*不换行*/
overflow:hidden;/*内容超出宽度时隐藏超出部分的内容*/
text-overflow:ellipsis;/*当对象内文本溢出时显示省略标记(...);需与overflow:hidden;一起使用。*/
}


本文转载自中文网

本文转载自中文网
如需转载,请注明文章出处和来源网址:http://www.divcss5.com/css3-style/c55526.shtml